Use write_all instead of write

In this unit test we want to write all the pieces, use `write_all`.

Clears clippy warning about not using return value of `write`.
This commit is contained in:
Tobin C. Harding 2022-06-07 14:50:46 +10:00
parent a9365375c1
commit 380e0016cc
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ mod test {
let mut ostream = ostream.unwrap();
for piece in pieces {
ostream.write(&piece[..]).unwrap();
ostream.write_all(&piece[..]).unwrap();
ostream.flush().unwrap();
thread::sleep(Duration::from_secs(1));
}