Skip to content

Commit d9876aa

Browse files
committed
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`.
1 parent e9e9177 commit d9876aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/network/stream_reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ mod test {
207207
let mut ostream = ostream.unwrap();
208208

209209
for piece in pieces {
210-
ostream.write(&piece[..]).unwrap();
210+
ostream.write_all(&piece[..]).unwrap();
211211
ostream.flush().unwrap();
212212
thread::sleep(Duration::from_secs(1));
213213
}

0 commit comments

Comments
 (0)