@@ -82,50 +82,82 @@ LL | | .expect("error");
8282error: written amount is not handled
8383 --> $DIR/unused_io_amount.rs:67:5
8484 |
85+ LL | s.write(b"ok").is_ok();
86+ | ^^^^^^^^^^^^^^^^^^^^^^
87+ |
88+ = help: use `Write::write_all` instead, or handle partial writes
89+
90+ error: written amount is not handled
91+ --> $DIR/unused_io_amount.rs:68:5
92+ |
93+ LL | s.write(b"err").is_err();
94+ | ^^^^^^^^^^^^^^^^^^^^^^^^
95+ |
96+ = help: use `Write::write_all` instead, or handle partial writes
97+
98+ error: read amount is not handled
99+ --> $DIR/unused_io_amount.rs:70:5
100+ |
101+ LL | s.read(&mut buf).is_ok();
102+ | ^^^^^^^^^^^^^^^^^^^^^^^^
103+ |
104+ = help: use `Read::read_exact` instead, or handle partial reads
105+
106+ error: read amount is not handled
107+ --> $DIR/unused_io_amount.rs:71:5
108+ |
109+ LL | s.read(&mut buf).is_err();
110+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
111+ |
112+ = help: use `Read::read_exact` instead, or handle partial reads
113+
114+ error: written amount is not handled
115+ --> $DIR/unused_io_amount.rs:75:5
116+ |
85117LL | w.write(b"hello world").await.unwrap();
86118 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87119 |
88120 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
89121
90122error: read amount is not handled
91- --> $DIR/unused_io_amount.rs:72 :5
123+ --> $DIR/unused_io_amount.rs:80 :5
92124 |
93125LL | r.read(&mut buf[..]).await.unwrap();
94126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95127 |
96128 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
97129
98130error: written amount is not handled
99- --> $DIR/unused_io_amount.rs:85 :9
131+ --> $DIR/unused_io_amount.rs:93 :9
100132 |
101133LL | w.write(b"hello world").await?;
102134 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103135 |
104136 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
105137
106138error: read amount is not handled
107- --> $DIR/unused_io_amount.rs:93 :9
139+ --> $DIR/unused_io_amount.rs:101 :9
108140 |
109141LL | r.read(&mut buf[..]).await.or(Err(Error::Kind))?;
110142 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111143 |
112144 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
113145
114146error: written amount is not handled
115- --> $DIR/unused_io_amount.rs:101 :5
147+ --> $DIR/unused_io_amount.rs:109 :5
116148 |
117149LL | w.write(b"hello world").await.unwrap();
118150 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119151 |
120152 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
121153
122154error: read amount is not handled
123- --> $DIR/unused_io_amount.rs:106 :5
155+ --> $DIR/unused_io_amount.rs:114 :5
124156 |
125157LL | r.read(&mut buf[..]).await.unwrap();
126158 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127159 |
128160 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
129161
130- error: aborting due to 16 previous errors
162+ error: aborting due to 20 previous errors
131163
0 commit comments