Bug fix for fuzz_write.rs

This commit is contained in:
Chris Hennick 2023-05-21 11:37:59 -07:00
parent fa045ad4c5
commit a86a1f99a3
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -72,7 +72,7 @@ fn do_operation<T>(writer: &mut RefCell<zip_next::ZipWriter<T>>,
}
}
if operation.abort {
writer.abort_file().unwrap();
writer.borrow_mut().abort_file().unwrap();
}
if operation.reopen {
let new_writer = zip_next::ZipWriter::new_append(writer.borrow_mut().finish().unwrap()).unwrap();