ci(fuzz): Fix build errors

This commit is contained in:
Chris Hennick 2024-06-08 14:32:57 -07:00
parent f3bb677511
commit 6abe26d757
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

@ -196,10 +196,10 @@ where
match operation.reopen {
ReopenOption::DoNotReopen => {},
ReopenOption::ViaFinish => replace_with_or_abort(writer, |old_writer: zip::ZipWriter<T>| {
zip::ZipWriter::new_append(old_writer.finish()?)?
zip::ZipWriter::new_append(old_writer.finish().unwrap()).unwrap()
}),
ReopenOption::ViaFinishIntoReadable => replace_with_or_abort(writer, |old_writer: zip::ZipWriter<T>| {
zip::ZipWriter::new_append(old_writer.finish_into_readable()?.into_inner())?
zip::ZipWriter::new_append(old_writer.finish_into_readable().unwrap().into_inner()).unwrap()
}),
}
assert_eq!(&old_comment, writer.get_raw_comment());