From 84949dd551294a4287ae713d6d73abc843196c59 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Tue, 9 Jan 2024 17:10:09 +0900 Subject: [PATCH] backend: mark BackendError::Other as transparent The inner error should be the source, and I don't think the "Error:" prefix gives additional context. --- lib/src/backend.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/backend.rs b/lib/src/backend.rs index 47a4de0d1..31851d3b1 100644 --- a/lib/src/backend.rs +++ b/lib/src/backend.rs @@ -217,7 +217,7 @@ pub enum BackendError { object_type: &'static str, source: Box, }, - #[error("Error: {0}")] + #[error(transparent)] Other(Box), }