Skip to content

Commit 756b1fb

Browse files
authored
Update snafu (#5930)
1 parent bb5f12b commit 756b1fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

object_store/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ humantime = "2.1"
3838
itertools = "0.13.0"
3939
parking_lot = { version = "0.12" }
4040
percent-encoding = "2.1"
41-
snafu = "0.7"
41+
snafu = { version = "0.8", default-features = false, features = ["std", "rust_1_61"] }
4242
tracing = { version = "0.1" }
4343
url = "2.2"
4444
walkdir = "2"

object_store/src/client/get.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ enum GetResultError {
103103
source: crate::client::header::Error,
104104
},
105105

106-
#[snafu(context(false))]
106+
#[snafu(transparent)]
107107
InvalidRangeRequest {
108108
source: crate::util::InvalidGetRange,
109109
},
@@ -386,7 +386,7 @@ mod tests {
386386
let err = get_result::<TestClient>(&path, Some(get_range.clone()), resp).unwrap_err();
387387
assert_eq!(
388388
err.to_string(),
389-
"InvalidRangeRequest: Wanted range starting at 2, but object was only 2 bytes long"
389+
"Wanted range starting at 2, but object was only 2 bytes long"
390390
);
391391

392392
let resp = make_response(

0 commit comments

Comments
 (0)