Skip to content

Commit e0ddd89

Browse files
committed
Fix warning about potentially incomplete writes
1 parent ba767ae commit e0ddd89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/test_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ async fn stream_write_zero() -> io::Result<()> {
356356
let mut io = Eof;
357357
let mut stream = Stream::new(&mut io, &mut client);
358358

359-
stream.write(b"1").await.unwrap();
359+
stream.write_all(b"1").await.unwrap();
360360
let result = stream.flush().await;
361361
assert_eq!(
362362
result.err().map(|e| e.kind()),

0 commit comments

Comments
 (0)