1 error: written amount is not handled
2 --> $DIR/unused_io_amount.rs:9:5
4 LL | s.write(b"test")?;
7 = note: `-D clippy::unused-io-amount` implied by `-D warnings`
8 = help: use `Write::write_all` instead, or handle partial writes
10 error: read amount is not handled
11 --> $DIR/unused_io_amount.rs:11:5
13 LL | s.read(&mut buf)?;
16 = help: use `Read::read_exact` instead, or handle partial reads
18 error: written amount is not handled
19 --> $DIR/unused_io_amount.rs:16:5
21 LL | s.write(b"test").unwrap();
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^
24 = help: use `Write::write_all` instead, or handle partial writes
26 error: read amount is not handled
27 --> $DIR/unused_io_amount.rs:18:5
29 LL | s.read(&mut buf).unwrap();
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^
32 = help: use `Read::read_exact` instead, or handle partial reads
34 error: read amount is not handled
35 --> $DIR/unused_io_amount.rs:22:5
37 LL | s.read_vectored(&mut [io::IoSliceMut::new(&mut [])])?;
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 error: written amount is not handled
41 --> $DIR/unused_io_amount.rs:23:5
43 LL | s.write_vectored(&[io::IoSlice::new(&[])])?;
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46 error: read amount is not handled
47 --> $DIR/unused_io_amount.rs:30:5
49 LL | reader.read(&mut result).ok()?;
50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 = help: use `Read::read_exact` instead, or handle partial reads
54 error: read amount is not handled
55 --> $DIR/unused_io_amount.rs:39:5
57 LL | reader.read(&mut result).or_else(|err| Err(err))?;
58 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60 = help: use `Read::read_exact` instead, or handle partial reads
62 error: read amount is not handled
63 --> $DIR/unused_io_amount.rs:51:5
65 LL | reader.read(&mut result).or(Err(Error::Kind))?;
66 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68 = help: use `Read::read_exact` instead, or handle partial reads
70 error: read amount is not handled
71 --> $DIR/unused_io_amount.rs:58:5
74 LL | | .read(&mut result)
75 LL | | .or(Err(Error::Kind))
76 LL | | .or(Err(Error::Kind))
77 LL | | .expect("error");
78 | |________________________^
80 = help: use `Read::read_exact` instead, or handle partial reads
82 error: written amount is not handled
83 --> $DIR/unused_io_amount.rs:67:5
85 LL | w.write(b"hello world").await.unwrap();
86 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
90 error: read amount is not handled
91 --> $DIR/unused_io_amount.rs:72:5
93 LL | r.read(&mut buf[..]).await.unwrap();
94 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
96 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
98 error: written amount is not handled
99 --> $DIR/unused_io_amount.rs:85:9
101 LL | w.write(b"hello world").await?;
102 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
106 error: read amount is not handled
107 --> $DIR/unused_io_amount.rs:93:9
109 LL | r.read(&mut buf[..]).await.or(Err(Error::Kind))?;
110 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
112 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
114 error: written amount is not handled
115 --> $DIR/unused_io_amount.rs:101:5
117 LL | w.write(b"hello world").await.unwrap();
118 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
120 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
122 error: read amount is not handled
123 --> $DIR/unused_io_amount.rs:106:5
125 LL | r.read(&mut buf[..]).await.unwrap();
126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
130 error: aborting due to 16 previous errors