@@ -82,50 +82,82 @@ LL | | .expect("error");
82
82
error: written amount is not handled
83
83
--> $DIR/unused_io_amount.rs:67:5
84
84
|
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
+ |
85
117
LL | w.write(b"hello world").await.unwrap();
86
118
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87
119
|
88
120
= help: use `AsyncWriteExt::write_all` instead, or handle partial writes
89
121
90
122
error: read amount is not handled
91
- --> $DIR/unused_io_amount.rs:72 :5
123
+ --> $DIR/unused_io_amount.rs:80 :5
92
124
|
93
125
LL | r.read(&mut buf[..]).await.unwrap();
94
126
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95
127
|
96
128
= help: use `AsyncReadExt::read_exact` instead, or handle partial reads
97
129
98
130
error: written amount is not handled
99
- --> $DIR/unused_io_amount.rs:85 :9
131
+ --> $DIR/unused_io_amount.rs:93 :9
100
132
|
101
133
LL | w.write(b"hello world").await?;
102
134
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103
135
|
104
136
= help: use `AsyncWriteExt::write_all` instead, or handle partial writes
105
137
106
138
error: read amount is not handled
107
- --> $DIR/unused_io_amount.rs:93 :9
139
+ --> $DIR/unused_io_amount.rs:101 :9
108
140
|
109
141
LL | r.read(&mut buf[..]).await.or(Err(Error::Kind))?;
110
142
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111
143
|
112
144
= help: use `AsyncReadExt::read_exact` instead, or handle partial reads
113
145
114
146
error: written amount is not handled
115
- --> $DIR/unused_io_amount.rs:101 :5
147
+ --> $DIR/unused_io_amount.rs:109 :5
116
148
|
117
149
LL | w.write(b"hello world").await.unwrap();
118
150
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119
151
|
120
152
= help: use `AsyncWriteExt::write_all` instead, or handle partial writes
121
153
122
154
error: read amount is not handled
123
- --> $DIR/unused_io_amount.rs:106 :5
155
+ --> $DIR/unused_io_amount.rs:114 :5
124
156
|
125
157
LL | r.read(&mut buf[..]).await.unwrap();
126
158
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127
159
|
128
160
= help: use `AsyncReadExt::read_exact` instead, or handle partial reads
129
161
130
- error: aborting due to 16 previous errors
162
+ error: aborting due to 20 previous errors
131
163
0 commit comments