chiark / gitweb /
bundles: Fix Display of ZipIndex to honour format options
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 12 May 2021 18:18:20 +0000 (19:18 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 13 May 2021 00:57:53 +0000 (01:57 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bundles.rs

index 231ae5ae02a4c6dff8afbe0c140e45d14396eedb..da0ac2d7b8d8d7cdb9c0dcc527eecc7a7429a73d 100644 (file)
@@ -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 {