mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
#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,
|
||||
WRITELN_EMPTY_STRING,
|
||||
mac.span,
|
||||
format!("using writeln!({}, \"\")", suggestion).as_str(),
|
||||
format!("using `writeln!({}, \"\")`", suggestion).as_str(),
|
||||
"replace it with",
|
||||
format!("writeln!({})", suggestion),
|
||||
);
|
||||
|
|
|
@ -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, "");
|
||||
|
|
Loading…
Reference in a new issue