#3016 Add backticks for the msg
This commit is contained in:
parent
c292b80783
commit
76f7bfcefd
2 changed files with 3 additions and 3 deletions
|
@ -219,7 +219,7 @@ impl EarlyLintPass for Pass {
|
||||||
cx,
|
cx,
|
||||||
WRITELN_EMPTY_STRING,
|
WRITELN_EMPTY_STRING,
|
||||||
mac.span,
|
mac.span,
|
||||||
format!("using writeln!({}, \"\")", suggestion).as_str(),
|
format!("using `writeln!({}, \"\")`", suggestion).as_str(),
|
||||||
"replace it with",
|
"replace it with",
|
||||||
format!("writeln!({})", suggestion),
|
format!("writeln!({})", suggestion),
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
error: using writeln!(&mut v, "")
|
error: using `writeln!(&mut v, "")`
|
||||||
--> $DIR/writeln_empty_string.rs:9:5
|
--> $DIR/writeln_empty_string.rs:9:5
|
||||||
|
|
|
|
||||||
9 | writeln!(&mut v, "");
|
9 | writeln!(&mut v, "");
|
||||||
|
@ -6,7 +6,7 @@ error: using writeln!(&mut v, "")
|
||||||
|
|
|
|
||||||
= note: `-D writeln-empty-string` implied by `-D warnings`
|
= note: `-D writeln-empty-string` implied by `-D warnings`
|
||||||
|
|
||||||
error: using writeln!(&mut suggestion, "")
|
error: using `writeln!(&mut suggestion, "")`
|
||||||
--> $DIR/writeln_empty_string.rs:12:5
|
--> $DIR/writeln_empty_string.rs:12:5
|
||||||
|
|
|
|
||||||
12 | writeln!(&mut suggestion, "");
|
12 | writeln!(&mut suggestion, "");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue