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: aborting due to 6 previous errors