Fix clippy warning: use write_all instead of write

This commit is contained in:
Chris Hennick 2023-04-23 14:51:17 -07:00
parent de638786f1
commit 360a7de003
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -1489,7 +1489,7 @@ mod test {
large_file: false, large_file: false,
}; };
writer.start_file(RT_TEST_FILENAME, options).unwrap(); writer.start_file(RT_TEST_FILENAME, options).unwrap();
writer.write(RT_TEST_TEXT.as_ref()).unwrap(); writer.write_all(RT_TEST_TEXT.as_ref()).unwrap();
writer.shallow_copy_file(RT_TEST_FILENAME, SECOND_FILENAME).unwrap(); writer.shallow_copy_file(RT_TEST_FILENAME, SECOND_FILENAME).unwrap();
let zip = writer.finish().unwrap(); let zip = writer.finish().unwrap();
let mut reader = ZipArchive::new(zip).unwrap(); let mut reader = ZipArchive::new(zip).unwrap();