From 360a7de003fcdee1d9d15d78f6e9f60f430ee164 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Sun, 23 Apr 2023 14:51:17 -0700 Subject: [PATCH] Fix clippy warning: use write_all instead of write --- src/write.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write.rs b/src/write.rs index 14f73658..a6c201a6 100644 --- a/src/write.rs +++ b/src/write.rs @@ -1489,7 +1489,7 @@ mod test { large_file: false, }; 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(); let zip = writer.finish().unwrap(); let mut reader = ZipArchive::new(zip).unwrap();