Skip to content

Commit 4160bbe

Browse files
authored
examples: Update to thiserror 2 (#3522)
1 parent f9c0e70 commit 4160bbe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/customize-extractor-error/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ axum = { path = "../../axum", features = ["macros"] }
99
axum-extra = { path = "../../axum-extra", features = ["with-rejection"] }
1010
serde = { version = "1.0", features = ["derive"] }
1111
serde_json = "1.0"
12-
thiserror = "1.0"
12+
thiserror = "2"
1313
tokio = { version = "1.20", features = ["full"] }
1414
tracing = "0.1"
1515
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

examples/validator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version = "0.1.0"
77
[dependencies]
88
axum = { path = "../../axum" }
99
serde = { version = "1.0", features = ["derive"] }
10-
thiserror = "1.0.29"
10+
thiserror = "2"
1111
tokio = { version = "1.0", features = ["full"] }
1212
tracing = "0.1"
1313
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

0 commit comments

Comments
 (0)