From e809328c122b20137a60f4533fada9cbe9d31e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Sun, 12 Apr 2020 18:20:03 +0300 Subject: Remove more unnecessary braces --- crates/ra_assists/src/handlers/reorder_fields.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_assists/src/handlers') diff --git a/crates/ra_assists/src/handlers/reorder_fields.rs b/crates/ra_assists/src/handlers/reorder_fields.rs index a43e53a11..5cbb98d73 100644 --- a/crates/ra_assists/src/handlers/reorder_fields.rs +++ b/crates/ra_assists/src/handlers/reorder_fields.rs @@ -69,8 +69,8 @@ fn get_fields_kind(node: &SyntaxNode) -> Vec { fn get_field_name(node: &SyntaxNode) -> String { let res = match_ast! { match node { - ast::RecordField(field) => { field.field_name().map(|it| it.to_string()) }, - ast::RecordFieldPat(field) => { field.field_name().map(|it| it.to_string()) }, + ast::RecordField(field) => field.field_name().map(|it| it.to_string()), + ast::RecordFieldPat(field) => field.field_name().map(|it| it.to_string()), _ => None, } }; -- cgit v1.2.3