1 error: written amount is not handled
2 --> $DIR/unused_io_amount.rs:9:5
4 LL | s.write(b"test")?;
7 = help: use `Write::write_all` instead, or handle partial writes
8 = note: `-D clippy::unused-io-amount` implied by `-D warnings`
9 = help: to override `-D warnings` add `#[allow(clippy::unused_io_amount)]`
11 error: read amount is not handled
12 --> $DIR/unused_io_amount.rs:12:5
14 LL | s.read(&mut buf)?;
17 = help: use `Read::read_exact` instead, or handle partial reads
19 error: written amount is not handled
20 --> $DIR/unused_io_amount.rs:18:5
22 LL | s.write(b"test").unwrap();
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^
25 = help: use `Write::write_all` instead, or handle partial writes
27 error: read amount is not handled
28 --> $DIR/unused_io_amount.rs:21:5
30 LL | s.read(&mut buf).unwrap();
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^
33 = help: use `Read::read_exact` instead, or handle partial reads
35 error: read amount is not handled
36 --> $DIR/unused_io_amount.rs:26:5
38 LL | s.read_vectored(&mut [io::IoSliceMut::new(&mut [])])?;
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41 error: written amount is not handled
42 --> $DIR/unused_io_amount.rs:28:5
44 LL | s.write_vectored(&[io::IoSlice::new(&[])])?;
45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47 error: read amount is not handled
48 --> $DIR/unused_io_amount.rs:36:5
50 LL | reader.read(&mut result).ok()?;
51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53 = help: use `Read::read_exact` instead, or handle partial reads
55 error: read amount is not handled
56 --> $DIR/unused_io_amount.rs:46:5
58 LL | reader.read(&mut result).or_else(|err| Err(err))?;
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61 = help: use `Read::read_exact` instead, or handle partial reads
63 error: read amount is not handled
64 --> $DIR/unused_io_amount.rs:59:5
66 LL | reader.read(&mut result).or(Err(Error::Kind))?;
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
69 = help: use `Read::read_exact` instead, or handle partial reads
71 error: read amount is not handled
72 --> $DIR/unused_io_amount.rs:67:5
76 LL | | .read(&mut result)
77 LL | | .or(Err(Error::Kind))
78 LL | | .or(Err(Error::Kind))
79 LL | | .expect("error");
80 | |________________________^
82 = help: use `Read::read_exact` instead, or handle partial reads
84 error: written amount is not handled
85 --> $DIR/unused_io_amount.rs:77:5
87 LL | s.write(b"ok").is_ok();
88 | ^^^^^^^^^^^^^^^^^^^^^^
90 = help: use `Write::write_all` instead, or handle partial writes
92 error: written amount is not handled
93 --> $DIR/unused_io_amount.rs:79:5
95 LL | s.write(b"err").is_err();
96 | ^^^^^^^^^^^^^^^^^^^^^^^^
98 = help: use `Write::write_all` instead, or handle partial writes
100 error: read amount is not handled
101 --> $DIR/unused_io_amount.rs:82:5
103 LL | s.read(&mut buf).is_ok();
104 | ^^^^^^^^^^^^^^^^^^^^^^^^
106 = help: use `Read::read_exact` instead, or handle partial reads
108 error: read amount is not handled
109 --> $DIR/unused_io_amount.rs:84:5
111 LL | s.read(&mut buf).is_err();
112 | ^^^^^^^^^^^^^^^^^^^^^^^^^
114 = help: use `Read::read_exact` instead, or handle partial reads
116 error: written amount is not handled
117 --> $DIR/unused_io_amount.rs:89:5
119 LL | w.write(b"hello world").await.unwrap();
120 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
122 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
124 error: read amount is not handled
125 --> $DIR/unused_io_amount.rs:95:5
127 LL | r.read(&mut buf[..]).await.unwrap();
128 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
130 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
132 error: written amount is not handled
133 --> $DIR/unused_io_amount.rs:109:9
135 LL | w.write(b"hello world").await?;
136 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
138 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
140 error: read amount is not handled
141 --> $DIR/unused_io_amount.rs:118:9
143 LL | r.read(&mut buf[..]).await.or(Err(Error::Kind))?;
144 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
146 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
148 error: written amount is not handled
149 --> $DIR/unused_io_amount.rs:127:5
151 LL | w.write(b"hello world").await.unwrap();
152 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
154 = help: use `AsyncWriteExt::write_all` instead, or handle partial writes
156 error: read amount is not handled
157 --> $DIR/unused_io_amount.rs:133:5
159 LL | r.read(&mut buf[..]).await.unwrap();
160 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
162 = help: use `AsyncReadExt::read_exact` instead, or handle partial reads
164 error: aborting due to 20 previous errors