From 17f4d27f1285a76961b2e3957dc192de8e4f179f Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Sun, 19 Jul 2020 14:26:24 -0400 Subject: Minor perf tweaks per clippy --- crates/ra_ide/src/diagnostics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_ide/src/diagnostics.rs') 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( } 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); } -- cgit v1.2.3