File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1480,7 +1480,7 @@ impl<'a> ZipFile<'a> {
14801480/// Methods for retrieving information on zip files
14811481impl ZipFile < ' _ > {
14821482 /// iterate through all extra fields
1483- pub fn extra_data_fields ( & self ) -> impl Iterator < Item = & ExtraField > {
1483+ pub fn extra_data_fields ( & self ) -> impl Iterator < Item = & ExtraField > + use < ' _ > {
14841484 self . data . extra_fields . iter ( )
14851485 }
14861486}
Original file line number Diff line number Diff line change @@ -1805,17 +1805,17 @@ impl<W: Write + Seek> GenericZipWriter<W> {
18051805
18061806 fn ref_mut ( & mut self ) -> Option < & mut dyn Write > {
18071807 match self {
1808- Storer ( ref mut w) => Some ( w as & mut dyn Write ) ,
1808+ & mut Storer ( ref mut w) => Some ( w as & mut dyn Write ) ,
18091809 #[ cfg( feature = "deflate-flate2" ) ]
1810- GenericZipWriter :: Deflater ( ref mut w) => Some ( w as & mut dyn Write ) ,
1810+ & mut GenericZipWriter :: Deflater ( ref mut w) => Some ( w as & mut dyn Write ) ,
18111811 #[ cfg( feature = "deflate-zopfli" ) ]
18121812 GenericZipWriter :: ZopfliDeflater ( w) => Some ( w as & mut dyn Write ) ,
18131813 #[ cfg( feature = "deflate-zopfli" ) ]
18141814 GenericZipWriter :: BufferedZopfliDeflater ( w) => Some ( w as & mut dyn Write ) ,
18151815 #[ cfg( feature = "bzip2" ) ]
1816- GenericZipWriter :: Bzip2 ( ref mut w) => Some ( w as & mut dyn Write ) ,
1816+ & mut GenericZipWriter :: Bzip2 ( ref mut w) => Some ( w as & mut dyn Write ) ,
18171817 #[ cfg( feature = "zstd" ) ]
1818- GenericZipWriter :: Zstd ( ref mut w) => Some ( w as & mut dyn Write ) ,
1818+ & mut GenericZipWriter :: Zstd ( ref mut w) => Some ( w as & mut dyn Write ) ,
18191819 Closed => None ,
18201820 }
18211821 }
You can’t perform that action at this time.
0 commit comments