Skip to content

Commit

Permalink
Revert "Update snafu (#5930)" (#6069)
Browse files Browse the repository at this point in the history
This reverts commit 756b1fb.
  • Loading branch information
alamb authored Jul 16, 2024
1 parent 2e7f7ef commit effccc1
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 = { version = "0.8", default-features = false, features = ["std", "rust_1_61"] }
snafu = "0.7"
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(transparent)]
#[snafu(context(false))]
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(),
"Wanted range starting at 2, but object was only 2 bytes long"
"InvalidRangeRequest: Wanted range starting at 2, but object was only 2 bytes long"
);

let resp = make_response(
Expand Down

0 comments on commit effccc1

Please sign in to comment.