Minor perf tweaks per clippy

This commit is contained in:
Jeremy Kolb 2020-07-19 14:26:24 -04:00
parent 09fab42d39
commit 17f4d27f12
7 changed files with 8 additions and 8 deletions

View file

@ -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);
}