1- error: written amount is not handled. Use `Write::write_all` instead
1+ error: written amount is not handled
22 --> $DIR/unused_io_amount.rs:9:5
33 |
44LL | s.write(b"test")?;
55 | ^^^^^^^^^^^^^^^^^
66 |
77 = note: `-D clippy::unused-io-amount` implied by `-D warnings`
8+ = help: use `Write::write_all` instead, or handle partial writes
89
9- error: read amount is not handled. Use `Read::read_exact` instead
10+ error: read amount is not handled
1011 --> $DIR/unused_io_amount.rs:11:5
1112 |
1213LL | s.read(&mut buf)?;
1314 | ^^^^^^^^^^^^^^^^^
15+ |
16+ = help: use `Read::read_exact` instead, or handle partial reads
1417
15- error: written amount is not handled. Use `Write::write_all` instead
18+ error: written amount is not handled
1619 --> $DIR/unused_io_amount.rs:16:5
1720 |
1821LL | s.write(b"test").unwrap();
1922 | ^^^^^^^^^^^^^^^^^^^^^^^^^
23+ |
24+ = help: use `Write::write_all` instead, or handle partial writes
2025
21- error: read amount is not handled. Use `Read::read_exact` instead
26+ error: read amount is not handled
2227 --> $DIR/unused_io_amount.rs:18:5
2328 |
2429LL | s.read(&mut buf).unwrap();
2530 | ^^^^^^^^^^^^^^^^^^^^^^^^^
31+ |
32+ = help: use `Read::read_exact` instead, or handle partial reads
2633
2734error: read amount is not handled
2835 --> $DIR/unused_io_amount.rs:22:5
@@ -36,25 +43,31 @@ error: written amount is not handled
3643LL | s.write_vectored(&[io::IoSlice::new(&[])])?;
3744 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3845
39- error: read amount is not handled. Use `Read::read_exact` instead
46+ error: read amount is not handled
4047 --> $DIR/unused_io_amount.rs:30:5
4148 |
4249LL | reader.read(&mut result).ok()?;
4350 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51+ |
52+ = help: use `Read::read_exact` instead, or handle partial reads
4453
45- error: read amount is not handled. Use `Read::read_exact` instead
54+ error: read amount is not handled
4655 --> $DIR/unused_io_amount.rs:39:5
4756 |
4857LL | reader.read(&mut result).or_else(|err| Err(err))?;
4958 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
59+ |
60+ = help: use `Read::read_exact` instead, or handle partial reads
5061
51- error: read amount is not handled. Use `Read::read_exact` instead
62+ error: read amount is not handled
5263 --> $DIR/unused_io_amount.rs:51:5
5364 |
5465LL | reader.read(&mut result).or(Err(Error::Kind))?;
5566 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67+ |
68+ = help: use `Read::read_exact` instead, or handle partial reads
5669
57- error: read amount is not handled. Use `Read::read_exact` instead
70+ error: read amount is not handled
5871 --> $DIR/unused_io_amount.rs:58:5
5972 |
6073LL | / reader
@@ -63,42 +76,56 @@ LL | | .or(Err(Error::Kind))
6376LL | | .or(Err(Error::Kind))
6477LL | | .expect("error");
6578 | |________________________^
79+ |
80+ = help: use `Read::read_exact` instead, or handle partial reads
6681
67- error: written amount is not handled. Use `AsyncWriteExt::write_all` instead
82+ error: written amount is not handled
6883 --> $DIR/unused_io_amount.rs:67:5
6984 |
7085LL | w.write(b"hello world").await.unwrap();
7186 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87+ |
88+ = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
7289
73- error: read amount is not handled. Use `AsyncReadExt::read_exact` instead
90+ error: read amount is not handled
7491 --> $DIR/unused_io_amount.rs:72:5
7592 |
7693LL | r.read(&mut buf[..]).await.unwrap();
7794 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95+ |
96+ = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
7897
79- error: written amount is not handled. Use `AsyncWriteExt::write_all` instead
98+ error: written amount is not handled
8099 --> $DIR/unused_io_amount.rs:85:9
81100 |
82101LL | w.write(b"hello world").await?;
83102 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103+ |
104+ = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
84105
85- error: read amount is not handled. Use `AsyncReadExt::read_exact` instead
106+ error: read amount is not handled
86107 --> $DIR/unused_io_amount.rs:93:9
87108 |
88109LL | r.read(&mut buf[..]).await.or(Err(Error::Kind))?;
89110 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111+ |
112+ = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
90113
91- error: written amount is not handled. Use `AsyncWriteExt::write_all` instead
114+ error: written amount is not handled
92115 --> $DIR/unused_io_amount.rs:101:5
93116 |
94117LL | w.write(b"hello world").await.unwrap();
95118 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119+ |
120+ = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
96121
97- error: read amount is not handled. Use `AsyncReadExt::read_exact` instead
122+ error: read amount is not handled
98123 --> $DIR/unused_io_amount.rs:106:5
99124 |
100125LL | r.read(&mut buf[..]).await.unwrap();
101126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127+ |
128+ = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
102129
103130error: aborting due to 16 previous errors
104131
0 commit comments