Fix clippy warning: use write_all instead of write
This commit is contained in:
parent
de638786f1
commit
360a7de003
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue