Skip to content

Commit 43d31fe

Browse files
Update thiserror to 2.0 (#240)
* Update thiserror to 2.0 * Add elided lifetime to make clippy happy --------- Co-authored-by: Robert Sjöblom <robert.sjoblom@fortnox.se>
1 parent d31d9cf commit 43d31fe

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

reqwest-middleware/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Changed
10+
11+
- Updated `thiserror` to `2.0`
12+
913
## [0.4.2] - 2025-04-08
1014

1115
### Added

reqwest-middleware/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async-trait = "0.1.51"
2323
http = "1.0.0"
2424
reqwest = { version = "0.12.0", default-features = false }
2525
serde = "1.0.106"
26-
thiserror = "1.0.21"
26+
thiserror = "2.0"
2727
tower-service = "0.3.0"
2828

2929
[dev-dependencies]

reqwest-retry/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Changed
10+
11+
- Updated `thiserror` to `2.0`
12+
913
## [0.7.0] - 2024-11-08
1014

1115
### Breaking changes

reqwest-retry/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ futures = "0.3.0"
2222
http = "1.0"
2323
reqwest = { version = "0.12.0", default-features = false }
2424
retry-policies = "0.4"
25-
thiserror = "1.0.61"
25+
thiserror = "2.0"
2626
tracing = { version = "0.1.26", optional = true }
2727

2828
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]

reqwest-retry/tests/all/helpers/simple_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl SimpleServer {
126126

127127
/// Parses the request line and checks that it contains the method, uri and http_version parts.
128128
/// It does not check if the content of the checked parts is correct. It just checks the format (it contains enough parts) of the request.
129-
fn parse_request_line(request: &str) -> Result<Request, Box<dyn Error>> {
129+
fn parse_request_line(request: &str) -> Result<Request<'_>, Box<dyn Error>> {
130130
let mut parts = request.split_whitespace();
131131

132132
let method = parts.next().ok_or("Method not specified")?;

0 commit comments

Comments
 (0)