diff options
author | Laurențiu Nicola <[email protected]> | 2020-04-12 16:20:03 +0100 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2020-04-12 16:20:03 +0100 |
commit | e809328c122b20137a60f4533fada9cbe9d31e09 (patch) | |
tree | ec42f573d373ea04ce3a08ed7df96ee95f1061aa /crates/ra_assists/src | |
parent | 268b7987290143550461090c2c0e23371813dbec (diff) |
Remove more unnecessary braces
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r-- | crates/ra_assists/src/handlers/reorder_fields.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<SyntaxKind> { | |||
69 | fn get_field_name(node: &SyntaxNode) -> String { | 69 | fn get_field_name(node: &SyntaxNode) -> String { |
70 | let res = match_ast! { | 70 | let res = match_ast! { |
71 | match node { | 71 | match node { |
72 | ast::RecordField(field) => { field.field_name().map(|it| it.to_string()) }, | 72 | ast::RecordField(field) => field.field_name().map(|it| it.to_string()), |
73 | ast::RecordFieldPat(field) => { field.field_name().map(|it| it.to_string()) }, | 73 | ast::RecordFieldPat(field) => field.field_name().map(|it| it.to_string()), |
74 | _ => None, | 74 | _ => None, |
75 | } | 75 | } |
76 | }; | 76 | }; |