Skip to content

Commit

Permalink
Update thiserror to version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Nov 30, 2024
1 parent e457389 commit d8d5da7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debugger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ reqwest = { version = "= 0.11.13", default-features = false, features = [
] }
rustyline = "10"
serde_json = "1"
thiserror = "1"
thiserror = "2"

[badges]
codecov = { repository = "pest-parser/pest" }
Expand Down
2 changes: 1 addition & 1 deletion pest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ miette-error = ["std", "pretty-print", "dep:miette", "dep:thiserror"]
ucd-trie = { version = "0.1.5", default-features = false }
serde = { version = "1.0.145", optional = true }
serde_json = { version = "1.0.85", optional = true }
thiserror = { version = "1.0.37", optional = true }
thiserror = { version = "2", optional = true }
memchr = { version = "2", optional = true }
miette = { version = "7.2.0", optional = true, features = ["fancy"] }

Expand Down
1 change: 1 addition & 0 deletions pest/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,7 @@ mod tests {
assert_eq!(
format!("{:?}", miette_error),
[
"",
" \u{1b}[31m×\u{1b}[0m Failure to parse at Pos((2, 1))",
" ╭────",
" \u{1b}[2m1\u{1b}[0m │ def",
Expand Down

0 comments on commit d8d5da7

Please sign in to comment.