Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update snafu
  • Loading branch information
Jesse-Bakker committed Jun 24, 2024
commit 08a169dcf4d6bdaab41fd2c26db7ddff828a73a7
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 @@ -353,7 +353,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