Skip to content

Commit

Permalink
Update snafu (#5930)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse-Bakker authored Jul 16, 2024
1 parent bb5f12b commit 756b1fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion object_store/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ humantime = "2.1"
itertools = "0.13.0"
parking_lot = { version = "0.12" }
percent-encoding = "2.1"
snafu = "0.7"
snafu = { version = "0.8", default-features = false, features = ["std", "rust_1_61"] }
tracing = { version = "0.1" }
url = "2.2"
walkdir = "2"
Expand Down
4 changes: 2 additions & 2 deletions object_store/src/client/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ enum GetResultError {
source: crate::client::header::Error,
},

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

let resp = make_response(
Expand Down

0 comments on commit 756b1fb

Please sign in to comment.