1 error: handle written amount returned or 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: handle read amount returned or use `Read::read_exact` instead
10 --> $DIR/unused_io_amount.rs:9:5
12 LL | s.read(&mut buf)?;
15 error: handle written amount returned or use `Write::write_all` instead
16 --> $DIR/unused_io_amount.rs:14:5
18 LL | s.write(b"test").unwrap();
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^
21 error: handle read amount returned or use `Read::read_exact` instead
22 --> $DIR/unused_io_amount.rs:16:5
24 LL | s.read(&mut buf).unwrap();
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^
27 error: aborting due to 4 previous errors