aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAlan Du <[email protected]>2019-06-04 07:29:50 +0100
committerAlan Du <[email protected]>2019-06-04 23:05:07 +0100
commit21d7964bc3f0b923aac081d9ab854c3fc0c8b0b7 (patch)
tree1b076f674cf068c67e394662aa275aa66708cc9b /crates
parentfb592d76aa24e8fe74694038c283f56ea83ab568 (diff)
Fix clippy::useless_format
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_ide_api/src/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/diagnostics.rs b/crates/ra_ide_api/src/diagnostics.rs
index a2a8c1e4f..35b3d77df 100644
--- a/crates/ra_ide_api/src/diagnostics.rs
+++ b/crates/ra_ide_api/src/diagnostics.rs
@@ -109,7 +109,7 @@ fn check_unnecessary_braces_in_use_statement(
109 109
110 acc.push(Diagnostic { 110 acc.push(Diagnostic {
111 range, 111 range,
112 message: format!("Unnecessary braces in use statement"), 112 message: "Unnecessary braces in use statement".to_string(),
113 severity: Severity::WeakWarning, 113 severity: Severity::WeakWarning,
114 fix: Some(SourceChange::source_file_edit( 114 fix: Some(SourceChange::source_file_edit(
115 "Remove unnecessary braces", 115 "Remove unnecessary braces",
@@ -155,7 +155,7 @@ fn check_struct_shorthand_initialization(
155 155
156 acc.push(Diagnostic { 156 acc.push(Diagnostic {
157 range: named_field.syntax().range(), 157 range: named_field.syntax().range(),
158 message: format!("Shorthand struct initialization"), 158 message: "Shorthand struct initialization".to_string(),
159 severity: Severity::WeakWarning, 159 severity: Severity::WeakWarning,
160 fix: Some(SourceChange::source_file_edit( 160 fix: Some(SourceChange::source_file_edit(
161 "use struct shorthand initialization", 161 "use struct shorthand initialization",