|
1 | 1 | error: use of `write!(stdout(), ...).unwrap()`
|
2 |
| - --> $DIR/explicit_write.rs:28:9 |
| 2 | + --> $DIR/explicit_write.rs:24:9 |
3 | 3 | |
|
4 |
| -28 | write!(std::io::stdout(), "test").unwrap(); |
| 4 | +24 | write!(std::io::stdout(), "test").unwrap(); |
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `print!("test")`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::explicit-write` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: use of `write!(stderr(), ...).unwrap()`
|
10 |
| - --> $DIR/explicit_write.rs:29:9 |
| 10 | + --> $DIR/explicit_write.rs:25:9 |
11 | 11 | |
|
12 |
| -29 | write!(std::io::stderr(), "test").unwrap(); |
| 12 | +25 | write!(std::io::stderr(), "test").unwrap(); |
13 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprint!("test")`
|
14 | 14 |
|
15 | 15 | error: use of `writeln!(stdout(), ...).unwrap()`
|
16 |
| - --> $DIR/explicit_write.rs:30:9 |
| 16 | + --> $DIR/explicit_write.rs:26:9 |
17 | 17 | |
|
18 |
| -30 | writeln!(std::io::stdout(), "test").unwrap(); |
| 18 | +26 | writeln!(std::io::stdout(), "test").unwrap(); |
19 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `println!("test")`
|
20 | 20 |
|
21 | 21 | error: use of `writeln!(stderr(), ...).unwrap()`
|
22 |
| - --> $DIR/explicit_write.rs:31:9 |
| 22 | + --> $DIR/explicit_write.rs:27:9 |
23 | 23 | |
|
24 |
| -31 | writeln!(std::io::stderr(), "test").unwrap(); |
| 24 | +27 | writeln!(std::io::stderr(), "test").unwrap(); |
25 | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("test")`
|
26 | 26 |
|
27 | 27 | error: use of `stdout().write_fmt(...).unwrap()`
|
28 |
| - --> $DIR/explicit_write.rs:32:9 |
| 28 | + --> $DIR/explicit_write.rs:28:9 |
29 | 29 | |
|
30 |
| -32 | std::io::stdout().write_fmt(format_args!("test")).unwrap(); |
| 30 | +28 | std::io::stdout().write_fmt(format_args!("test")).unwrap(); |
31 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `print!("test")`
|
32 | 32 |
|
33 | 33 | error: use of `stderr().write_fmt(...).unwrap()`
|
34 |
| - --> $DIR/explicit_write.rs:33:9 |
| 34 | + --> $DIR/explicit_write.rs:29:9 |
35 | 35 | |
|
36 |
| -33 | std::io::stderr().write_fmt(format_args!("test")).unwrap(); |
| 36 | +29 | std::io::stderr().write_fmt(format_args!("test")).unwrap(); |
37 | 37 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprint!("test")`
|
38 | 38 |
|
39 | 39 | error: use of `writeln!(stdout(), ...).unwrap()`
|
40 |
| - --> $DIR/explicit_write.rs:36:9 |
| 40 | + --> $DIR/explicit_write.rs:32:9 |
41 | 41 | |
|
42 |
| -36 | writeln!(std::io::stdout(), "test/ntest").unwrap(); |
| 42 | +32 | writeln!(std::io::stdout(), "test/ntest").unwrap(); |
43 | 43 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `println!("test/ntest")`
|
44 | 44 |
|
45 | 45 | error: use of `writeln!(stderr(), ...).unwrap()`
|
46 |
| - --> $DIR/explicit_write.rs:37:9 |
| 46 | + --> $DIR/explicit_write.rs:33:9 |
47 | 47 | |
|
48 |
| -37 | writeln!(std::io::stderr(), "test/ntest").unwrap(); |
| 48 | +33 | writeln!(std::io::stderr(), "test/ntest").unwrap(); |
49 | 49 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `eprintln!("test/ntest")`
|
50 | 50 |
|
51 | 51 | error: aborting due to 8 previous errors
|
|
0 commit comments