Refactor: don't need to be mutable during prepare_next_writer

This commit is contained in:
Chris Hennick 2023-05-04 10:48:21 -07:00
parent 55d82a455c
commit a41c92d164
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -989,7 +989,7 @@ impl<W: Write + Seek> Drop for ZipWriter<W> {
impl<W: Write + Seek> GenericZipWriter<W> {
fn prepare_next_writer(
&mut self,
&self,
compression: CompressionMethod,
compression_level: Option<i32>,
) -> ZipResult<Box<dyn FnOnce(W) -> GenericZipWriter<W>>> {