From 3a73a447c0e9ae3027d2aa51fd0c55d5514152a5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 12 May 2021 19:18:20 +0100 Subject: [PATCH] bundles: Fix Display of ZipIndex to honour format options Signed-off-by: Ian Jackson --- src/bundles.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundles.rs b/src/bundles.rs index 231ae5ae..da0ac2d7 100644 --- a/src/bundles.rs +++ b/src/bundles.rs @@ -300,7 +300,7 @@ deref_to_field_mut!{IndexedZip, ZipArchive, za } pub struct ZipIndex(pub usize); impl Display for ZipIndex { #[throws(fmt::Error)] - fn fmt(&self, f: &mut Formatter) { write!(f,"{}",self.0)? } + fn fmt(&self, f: &mut Formatter) { Display::fmt(&self.0,f)? } } impl IndexedZip where { -- 2.30.2