fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: use of `write!(stdout(), ...).unwrap()` 2 --> $DIR/explicit_write.rs:23:9 3 | 4LL | write!(std::io::stdout(), "test").unwrap(); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `print!("test")` 6 | 7 = note: `-D clippy::explicit-write` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::explicit_write)]` 9 10error: use of `write!(stderr(), ...).unwrap()` 11 --> $DIR/explicit_write.rs:24:9 12 | 13LL | write!(std::io::stderr(), "test").unwrap(); 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprint!("test")` 15 16error: use of `writeln!(stdout(), ...).unwrap()` 17 --> $DIR/explicit_write.rs:25:9 18 | 19LL | writeln!(std::io::stdout(), "test").unwrap(); 20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `println!("test")` 21 22error: use of `writeln!(stderr(), ...).unwrap()` 23 --> $DIR/explicit_write.rs:26:9 24 | 25LL | writeln!(std::io::stderr(), "test").unwrap(); 26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("test")` 27 28error: use of `stdout().write_fmt(...).unwrap()` 29 --> $DIR/explicit_write.rs:27:9 30 | 31LL | std::io::stdout().write_fmt(format_args!("test")).unwrap(); 32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `print!("test")` 33 34error: use of `stderr().write_fmt(...).unwrap()` 35 --> $DIR/explicit_write.rs:28:9 36 | 37LL | std::io::stderr().write_fmt(format_args!("test")).unwrap(); 38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprint!("test")` 39 40error: use of `writeln!(stdout(), ...).unwrap()` 41 --> $DIR/explicit_write.rs:31:9 42 | 43LL | writeln!(std::io::stdout(), "test\ntest").unwrap(); 44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `println!("test\ntest")` 45 46error: use of `writeln!(stderr(), ...).unwrap()` 47 --> $DIR/explicit_write.rs:32:9 48 | 49LL | writeln!(std::io::stderr(), "test\ntest").unwrap(); 50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("test\ntest")` 51 52error: use of `writeln!(stderr(), ...).unwrap()` 53 --> $DIR/explicit_write.rs:35:9 54 | 55LL | writeln!(std::io::stderr(), "with {}", value).unwrap(); 56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("with {}", value)` 57 58error: use of `writeln!(stderr(), ...).unwrap()` 59 --> $DIR/explicit_write.rs:36:9 60 | 61LL | writeln!(std::io::stderr(), "with {} {}", 2, value).unwrap(); 62 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("with {} {}", 2, value)` 63 64error: use of `writeln!(stderr(), ...).unwrap()` 65 --> $DIR/explicit_write.rs:37:9 66 | 67LL | writeln!(std::io::stderr(), "with {value}").unwrap(); 68 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("with {value}")` 69 70error: use of `writeln!(stderr(), ...).unwrap()` 71 --> $DIR/explicit_write.rs:38:9 72 | 73LL | writeln!(std::io::stderr(), "macro arg {}", one!()).unwrap(); 74 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("macro arg {}", one!())` 75 76error: use of `writeln!(stderr(), ...).unwrap()` 77 --> $DIR/explicit_write.rs:40:9 78 | 79LL | writeln!(std::io::stderr(), "{:w$}", value, w = width).unwrap(); 80 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eprintln!("{:w$}", value, w = width)` 81 82error: aborting due to 13 previous errors 83