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:
parent
a9365375c1
commit
380e0016cc
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue