This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new e6b794436c Update snafu (#5930) (#6070)
e6b794436c is described below

commit e6b794436c8f640c5666e049c508ff5ef6209bdc
Author: Andrew Lamb <[email protected]>
AuthorDate: Fri Aug 2 11:15:20 2024 -0400

    Update snafu (#5930) (#6070)
    
    Co-authored-by: Jesse <[email protected]>
---
 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 4e845e5ca2..71e0bcb865 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(

Reply via email to