mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Minor perf tweaks per clippy
This commit is contained in:
parent
09fab42d39
commit
17f4d27f12
7 changed files with 8 additions and 8 deletions
|
@ -183,7 +183,7 @@ fn missing_struct_field_fix(
|
|||
}
|
||||
new_field = format!("\n{}{}", indent, new_field);
|
||||
|
||||
let needs_comma = !last_field_syntax.to_string().ends_with(",");
|
||||
let needs_comma = !last_field_syntax.to_string().ends_with(',');
|
||||
if needs_comma {
|
||||
new_field = format!(",{}", new_field);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue