aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/handlers
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-04-12 17:37:36 +0100
committerGitHub <[email protected]>2020-04-12 17:37:36 +0100
commitc388130f5ffbcbe7d3131213a24d12d02f769b87 (patch)
treeec42f573d373ea04ce3a08ed7df96ee95f1061aa /crates/ra_assists/src/handlers
parent268b7987290143550461090c2c0e23371813dbec (diff)
parente809328c122b20137a60f4533fada9cbe9d31e09 (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.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 };