1 error: written amount is not handled. Use `Write::write_all` instead
2 --> $DIR/unused_io_amount.rs:7:5
4 LL | s.write(b"test")?;
7 = note: `-D clippy::unused-io-amount` implied by `-D warnings`
9 error: read amount is not handled. Use `Read::read_exact` instead
10 --> $DIR/unused_io_amount.rs:9:5
12 LL | s.read(&mut buf)?;
15 error: written amount is not handled. Use `Write::write_all` instead
16 --> $DIR/unused_io_amount.rs:14:5
18 LL | s.write(b"test").unwrap();
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^
21 error: read amount is not handled. Use `Read::read_exact` instead
22 --> $DIR/unused_io_amount.rs:16:5
24 LL | s.read(&mut buf).unwrap();
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^
27 error: read amount is not handled
28 --> $DIR/unused_io_amount.rs:20:5
30 LL | s.read_vectored(&mut [io::IoSliceMut::new(&mut [])])?;
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 error: written amount is not handled
34 --> $DIR/unused_io_amount.rs:21:5
36 LL | s.write_vectored(&[io::IoSlice::new(&[])])?;
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39 error: read amount is not handled. Use `Read::read_exact` instead
40 --> $DIR/unused_io_amount.rs:28:5
42 LL | reader.read(&mut result).ok()?;
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 error: read amount is not handled. Use `Read::read_exact` instead
46 --> $DIR/unused_io_amount.rs:37:5
48 LL | reader.read(&mut result).or_else(|err| Err(err))?;
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 error: read amount is not handled. Use `Read::read_exact` instead
52 --> $DIR/unused_io_amount.rs:49:5
54 LL | reader.read(&mut result).or(Err(Error::Kind))?;
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 error: read amount is not handled. Use `Read::read_exact` instead
58 --> $DIR/unused_io_amount.rs:56:5
61 LL | | .read(&mut result)
62 LL | | .or(Err(Error::Kind))
63 LL | | .or(Err(Error::Kind))
64 LL | | .expect("error");
65 | |________________________^
67 error: aborting due to 10 previous errors