aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 };