We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc55abd commit df12797Copy full SHA for df12797
compiler-core/src/warning.rs
@@ -1305,7 +1305,7 @@ can already tell whether it will be true or false.",
1305
1306
type_::Warning::UnusedDiscardPattern { location, name } => Diagnostic {
1307
title: "Unused discard pattern".into(),
1308
- text: format!("_ as {name} can be written more concisely as {name}"),
+ text: format!("`_ as {name}` can be written more concisely as `{name}`"),
1309
level: diagnostic::Level::Warning,
1310
location: Some(Location {
1311
src: src.clone(),
0 commit comments