1 error: handle written amount returned or use `Write::write_all` instead
2 --> $DIR/unused_io_amount.rs:21:5
4 21 | try!(s.write(b"test"));
5 | ^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::unused-io-amount` implied by `-D warnings`
8 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
10 error: handle read amount returned or use `Read::read_exact` instead
11 --> $DIR/unused_io_amount.rs:23:5
13 23 | try!(s.read(&mut buf));
14 | ^^^^^^^^^^^^^^^^^^^^^^^
16 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
18 error: handle written amount returned or use `Write::write_all` instead
19 --> $DIR/unused_io_amount.rs:28:5
21 28 | s.write(b"test")?;
24 error: handle read amount returned or use `Read::read_exact` instead
25 --> $DIR/unused_io_amount.rs:30:5
27 30 | s.read(&mut buf)?;
30 error: handle written amount returned or use `Write::write_all` instead
31 --> $DIR/unused_io_amount.rs:35:5
33 35 | s.write(b"test").unwrap();
34 | ^^^^^^^^^^^^^^^^^^^^^^^^^
36 error: handle read amount returned or use `Read::read_exact` instead
37 --> $DIR/unused_io_amount.rs:37:5
39 37 | s.read(&mut buf).unwrap();
40 | ^^^^^^^^^^^^^^^^^^^^^^^^^
42 error: aborting due to 6 previous errors