-error: using `writeln!(&mut v, "")`
- --> $DIR/writeln_empty_string.rs:9:5
- |
-9 | writeln!(&mut v, "");
- | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `writeln!(&mut v)`
- |
- = note: `-D writeln-empty-string` implied by `-D warnings`
+error: empty string literal in `writeln!`
+ --> $DIR/writeln_empty_string.rs:11:5
+ |
+LL | writeln!(v, "");
+ | ^^^^^^^^^^----^
+ | |
+ | help: remove the empty string
+ |
+ = note: `-D clippy::writeln-empty-string` implied by `-D warnings`
-error: using `writeln!(&mut suggestion, "")`
- --> $DIR/writeln_empty_string.rs:12:5
+error: empty string literal in `writeln!`
+ --> $DIR/writeln_empty_string.rs:14:5
|
-12 | writeln!(&mut suggestion, "");
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `writeln!(&mut suggestion)`
+LL | writeln!(suggestion, "");
+ | ^^^^^^^^^^^^^^^^^^^----^
+ | |
+ | help: remove the empty string
error: aborting due to 2 previous errors