#3016 Add backticks for the msg

This commit is contained in:
Lachezar Lechev 2018-08-20 15:50:15 +02:00
parent c292b80783
commit 76f7bfcefd
2 changed files with 3 additions and 3 deletions

View file

@ -219,7 +219,7 @@ impl EarlyLintPass for Pass {
cx,
WRITELN_EMPTY_STRING,
mac.span,
format!("using writeln!({}, \"\")", suggestion).as_str(),
format!("using `writeln!({}, \"\")`", suggestion).as_str(),
"replace it with",
format!("writeln!({})", suggestion),
);

View file

@ -1,4 +1,4 @@
error: using writeln!(&mut v, "")
error: using `writeln!(&mut v, "")`
--> $DIR/writeln_empty_string.rs:9:5
|
9 | writeln!(&mut v, "");
@ -6,7 +6,7 @@ error: using writeln!(&mut v, "")
|
= 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
|
12 | writeln!(&mut suggestion, "");