diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-20 17:54:57 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-20 17:54:57 +0100 |
commit | 21b4e9178fd7047f01f6d999abe6b167027263d9 (patch) | |
tree | 0fac8c81fa4940e946f6f7f1efe2af2383207b0b /crates/ra_ide/src/diagnostics.rs | |
parent | 7a089a7bab3779ad83719a91f0db6ec6ccf0175b (diff) | |
parent | 17f4d27f1285a76961b2e3957dc192de8e4f179f (diff) |
Merge #5440
5440: Minor perf tweaks per clippy r=matklad a=kjeremy
Co-authored-by: Jeremy Kolb <[email protected]>
Diffstat (limited to 'crates/ra_ide/src/diagnostics.rs')
-rw-r--r-- | crates/ra_ide/src/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide/src/diagnostics.rs b/crates/ra_ide/src/diagnostics.rs index fe75f4b2c..e029af0dc 100644 --- a/crates/ra_ide/src/diagnostics.rs +++ b/crates/ra_ide/src/diagnostics.rs | |||
@@ -183,7 +183,7 @@ fn missing_struct_field_fix( | |||
183 | } | 183 | } |
184 | new_field = format!("\n{}{}", indent, new_field); | 184 | new_field = format!("\n{}{}", indent, new_field); |
185 | 185 | ||
186 | let needs_comma = !last_field_syntax.to_string().ends_with(","); | 186 | let needs_comma = !last_field_syntax.to_string().ends_with(','); |
187 | if needs_comma { | 187 | if needs_comma { |
188 | new_field = format!(",{}", new_field); | 188 | new_field = format!(",{}", new_field); |
189 | } | 189 | } |