chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5c06ef
)
bundles: Fix Display of ZipIndex to honour format options
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 12 May 2021 18:18:20 +0000
(19:18 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/src/bundles.rs
b/src/bundles.rs
index 231ae5ae02a4c6dff8afbe0c140e45d14396eedb..da0ac2d7b8d8d7cdb9c0dcc527eecc7a7429a73d 100644
(file)
--- 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 {