1
- error: written amount is not handled. Use `Write::write_all` instead
1
+ error: written amount is not handled
2
2
--> $DIR/unused_io_amount.rs:9:5
3
3
|
4
4
LL | s.write(b"test")?;
5
5
| ^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D clippy::unused-io-amount` implied by `-D warnings`
8
+ = help: use `Write::write_all` instead, or handle partial writes
8
9
9
- error: read amount is not handled. Use `Read::read_exact` instead
10
+ error: read amount is not handled
10
11
--> $DIR/unused_io_amount.rs:11:5
11
12
|
12
13
LL | s.read(&mut buf)?;
13
14
| ^^^^^^^^^^^^^^^^^
15
+ |
16
+ = help: use `Read::read_exact` instead, or handle partial reads
14
17
15
- error: written amount is not handled. Use `Write::write_all` instead
18
+ error: written amount is not handled
16
19
--> $DIR/unused_io_amount.rs:16:5
17
20
|
18
21
LL | s.write(b"test").unwrap();
19
22
| ^^^^^^^^^^^^^^^^^^^^^^^^^
23
+ |
24
+ = help: use `Write::write_all` instead, or handle partial writes
20
25
21
- error: read amount is not handled. Use `Read::read_exact` instead
26
+ error: read amount is not handled
22
27
--> $DIR/unused_io_amount.rs:18:5
23
28
|
24
29
LL | s.read(&mut buf).unwrap();
25
30
| ^^^^^^^^^^^^^^^^^^^^^^^^^
31
+ |
32
+ = help: use `Read::read_exact` instead, or handle partial reads
26
33
27
34
error: read amount is not handled
28
35
--> $DIR/unused_io_amount.rs:22:5
@@ -36,25 +43,31 @@ error: written amount is not handled
36
43
LL | s.write_vectored(&[io::IoSlice::new(&[])])?;
37
44
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38
45
39
- error: read amount is not handled. Use `Read::read_exact` instead
46
+ error: read amount is not handled
40
47
--> $DIR/unused_io_amount.rs:30:5
41
48
|
42
49
LL | reader.read(&mut result).ok()?;
43
50
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51
+ |
52
+ = help: use `Read::read_exact` instead, or handle partial reads
44
53
45
- error: read amount is not handled. Use `Read::read_exact` instead
54
+ error: read amount is not handled
46
55
--> $DIR/unused_io_amount.rs:39:5
47
56
|
48
57
LL | reader.read(&mut result).or_else(|err| Err(err))?;
49
58
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
59
+ |
60
+ = help: use `Read::read_exact` instead, or handle partial reads
50
61
51
- error: read amount is not handled. Use `Read::read_exact` instead
62
+ error: read amount is not handled
52
63
--> $DIR/unused_io_amount.rs:51:5
53
64
|
54
65
LL | reader.read(&mut result).or(Err(Error::Kind))?;
55
66
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67
+ |
68
+ = help: use `Read::read_exact` instead, or handle partial reads
56
69
57
- error: read amount is not handled. Use `Read::read_exact` instead
70
+ error: read amount is not handled
58
71
--> $DIR/unused_io_amount.rs:58:5
59
72
|
60
73
LL | / reader
@@ -63,42 +76,56 @@ LL | | .or(Err(Error::Kind))
63
76
LL | | .or(Err(Error::Kind))
64
77
LL | | .expect("error");
65
78
| |________________________^
79
+ |
80
+ = help: use `Read::read_exact` instead, or handle partial reads
66
81
67
- error: written amount is not handled. Use `AsyncWriteExt::write_all` instead
82
+ error: written amount is not handled
68
83
--> $DIR/unused_io_amount.rs:67:5
69
84
|
70
85
LL | w.write(b"hello world").await.unwrap();
71
86
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87
+ |
88
+ = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
72
89
73
- error: read amount is not handled. Use `AsyncReadExt::read_exact` instead
90
+ error: read amount is not handled
74
91
--> $DIR/unused_io_amount.rs:72:5
75
92
|
76
93
LL | r.read(&mut buf[..]).await.unwrap();
77
94
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95
+ |
96
+ = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
78
97
79
- error: written amount is not handled. Use `AsyncWriteExt::write_all` instead
98
+ error: written amount is not handled
80
99
--> $DIR/unused_io_amount.rs:85:9
81
100
|
82
101
LL | w.write(b"hello world").await?;
83
102
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103
+ |
104
+ = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
84
105
85
- error: read amount is not handled. Use `AsyncReadExt::read_exact` instead
106
+ error: read amount is not handled
86
107
--> $DIR/unused_io_amount.rs:93:9
87
108
|
88
109
LL | r.read(&mut buf[..]).await.or(Err(Error::Kind))?;
89
110
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111
+ |
112
+ = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
90
113
91
- error: written amount is not handled. Use `AsyncWriteExt::write_all` instead
114
+ error: written amount is not handled
92
115
--> $DIR/unused_io_amount.rs:101:5
93
116
|
94
117
LL | w.write(b"hello world").await.unwrap();
95
118
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119
+ |
120
+ = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
96
121
97
- error: read amount is not handled. Use `AsyncReadExt::read_exact` instead
122
+ error: read amount is not handled
98
123
--> $DIR/unused_io_amount.rs:106:5
99
124
|
100
125
LL | r.read(&mut buf[..]).await.unwrap();
101
126
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127
+ |
128
+ = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
102
129
103
130
error: aborting due to 16 previous errors
104
131
0 commit comments