diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-12 17:37:36 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-12 17:37:36 +0100 |
commit | c388130f5ffbcbe7d3131213a24d12d02f769b87 (patch) | |
tree | ec42f573d373ea04ce3a08ed7df96ee95f1061aa /crates/ra_assists/src/handlers | |
parent | 268b7987290143550461090c2c0e23371813dbec (diff) | |
parent | e809328c122b20137a60f4533fada9cbe9d31e09 (diff) |
Merge #3957
3957: Remove more unnecessary braces r=kjeremy a=lnicola
See #3866.
Co-authored-by: Laurențiu Nicola <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/handlers')
-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 | }; |