aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2020-04-12 16:20:03 +0100
committerLaurenČ›iu Nicola <[email protected]>2020-04-12 16:20:03 +0100
commite809328c122b20137a60f4533fada9cbe9d31e09 (patch)
treeec42f573d373ea04ce3a08ed7df96ee95f1061aa
parent268b7987290143550461090c2c0e23371813dbec (diff)
Remove more unnecessary braces
-rw-r--r--crates/ra_assists/src/handlers/reorder_fields.rs4
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> {
69fn get_field_name(node: &SyntaxNode) -> String { 69fn 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 };