Fix clippy::useless_format

This commit is contained in:
Alan Du 2019-06-04 02:29:50 -04:00
parent fb592d76aa
commit 21d7964bc3

View file

@ -109,7 +109,7 @@ fn check_unnecessary_braces_in_use_statement(
acc.push(Diagnostic { acc.push(Diagnostic {
range, range,
message: format!("Unnecessary braces in use statement"), message: "Unnecessary braces in use statement".to_string(),
severity: Severity::WeakWarning, severity: Severity::WeakWarning,
fix: Some(SourceChange::source_file_edit( fix: Some(SourceChange::source_file_edit(
"Remove unnecessary braces", "Remove unnecessary braces",
@ -155,7 +155,7 @@ fn check_struct_shorthand_initialization(
acc.push(Diagnostic { acc.push(Diagnostic {
range: named_field.syntax().range(), range: named_field.syntax().range(),
message: format!("Shorthand struct initialization"), message: "Shorthand struct initialization".to_string(),
severity: Severity::WeakWarning, severity: Severity::WeakWarning,
fix: Some(SourceChange::source_file_edit( fix: Some(SourceChange::source_file_edit(
"use struct shorthand initialization", "use struct shorthand initialization",