This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch 53.0.0-dev
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/53.0.0-dev by this push:
new 756b1fb26d Update snafu (#5930)
756b1fb26d is described below
commit 756b1fb26d1702f36f446faf9bb40a4869c3e840
Author: Jesse <[email protected]>
AuthorDate: Wed Jul 17 00:10:59 2024 +0200
Update snafu (#5930)
---
object_store/Cargo.toml | 2 +-
object_store/src/client/get.rs | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/object_store/Cargo.toml b/object_store/Cargo.toml
index 3f7b2c0b2b..234c7746b3 100644
--- a/object_store/Cargo.toml
+++ b/object_store/Cargo.toml
@@ -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"
diff --git a/object_store/src/client/get.rs b/object_store/src/client/get.rs
index b45eaa1437..0fef5785c0 100644
--- a/object_store/src/client/get.rs
+++ b/object_store/src/client/get.rs
@@ -103,7 +103,7 @@ enum GetResultError {
source: crate::client::header::Error,
},
- #[snafu(context(false))]
+ #[snafu(transparent)]
InvalidRangeRequest {
source: crate::util::InvalidGetRange,
},
@@ -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(