From 4c9ea7c3c4b8d5380f40958415bb4e72c27a9c66 Mon Sep 17 00:00:00 2001 From: Jesse Bakker Date: Fri, 21 Jun 2024 16:30:40 +0200 Subject: [PATCH] Update snafu --- object_store/Cargo.toml | 2 +- object_store/src/client/get.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/object_store/Cargo.toml b/object_store/Cargo.toml index 13da3a8c7aba..6279124c37a5 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 430b87b1ba34..b96ae911dac9 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(context(false), display("InvalidRangeRequest: {source}"))] InvalidRangeRequest { source: crate::util::InvalidGetRange, },