|
1 | 1 | error: handle written amount returned or use `Write::write_all` instead |
2 | 2 | --> $DIR/unused_io_amount.rs:7:5 |
3 | 3 | | |
4 | | -LL | r#try!(s.write(b"test")); |
5 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 4 | +LL | s.write(b"test")?; |
| 5 | + | ^^^^^^^^^^^^^^^^^ |
6 | 6 | | |
7 | 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) |
9 | 8 |
|
10 | 9 | error: handle read amount returned or use `Read::read_exact` instead |
11 | 10 | --> $DIR/unused_io_amount.rs:9:5 |
12 | 11 | | |
13 | | -LL | r#try!(s.read(&mut buf)); |
14 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
15 | | - | |
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) |
17 | | - |
18 | | -error: handle written amount returned or use `Write::write_all` instead |
19 | | - --> $DIR/unused_io_amount.rs:14:5 |
20 | | - | |
21 | | -LL | s.write(b"test")?; |
22 | | - | ^^^^^^^^^^^^^^^^^ |
23 | | - |
24 | | -error: handle read amount returned or use `Read::read_exact` instead |
25 | | - --> $DIR/unused_io_amount.rs:16:5 |
26 | | - | |
27 | 12 | LL | s.read(&mut buf)?; |
28 | 13 | | ^^^^^^^^^^^^^^^^^ |
29 | 14 |
|
30 | 15 | error: handle written amount returned or use `Write::write_all` instead |
31 | | - --> $DIR/unused_io_amount.rs:21:5 |
| 16 | + --> $DIR/unused_io_amount.rs:14:5 |
32 | 17 | | |
33 | 18 | LL | s.write(b"test").unwrap(); |
34 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
35 | 20 |
|
36 | 21 | error: handle read amount returned or use `Read::read_exact` instead |
37 | | - --> $DIR/unused_io_amount.rs:23:5 |
| 22 | + --> $DIR/unused_io_amount.rs:16:5 |
38 | 23 | | |
39 | 24 | LL | s.read(&mut buf).unwrap(); |
40 | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
41 | 26 |
|
42 | | -error: aborting due to 6 previous errors |
| 27 | +error: aborting due to 4 previous errors |
43 | 28 |
|
0 commit comments