From ff71b5439fb6659b9bf299506e8f9dc21e0d7935 Mon Sep 17 00:00:00 2001 From: Luka Peschke Date: Wed, 10 Dec 2025 16:39:02 +0100 Subject: [PATCH] feat: display the underlying error in Display impl for ZipError::Display Signed-off-by: Luka Peschke --- src/result.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/result.rs b/src/result.rs index 550f2bdae..744681fe6 100644 --- a/src/result.rs +++ b/src/result.rs @@ -50,7 +50,7 @@ impl ZipError { impl Display for ZipError { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { match self { - Self::Io(_) => f.write_str("i/o error"), + Self::Io(e) => write!(f, "i/o error: {e}"), Self::InvalidArchive(e) => write!(f, "invalid Zip archive: {e}"), Self::UnsupportedArchive(e) => write!(f, "unsupported Zip archive: {e}"), Self::FileNotFound => f.write_str("specified file not found in archive"),