From: Ian Jackson Date: Wed, 12 May 2021 18:18:20 +0000 (+0100) Subject: bundles: Fix Display of ZipIndex to honour format options X-Git-Tag: otter-0.6.0~326 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3a73a447c0e9ae3027d2aa51fd0c55d5514152a5;p=otter.git bundles: Fix Display of ZipIndex to honour format options Signed-off-by: Ian Jackson --- 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 {