mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Fix clippy::useless_format
This commit is contained in:
parent
fb592d76aa
commit
21d7964bc3
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue