Skip to content

Commit

Permalink
Merge #3957
Browse files Browse the repository at this point in the history
3957: Remove more unnecessary braces r=kjeremy a=lnicola

See #3866.

Co-authored-by: Laurențiu Nicola <[email protected]>
  • Loading branch information
bors[bot] and lnicola authored Apr 12, 2020
2 parents 268b798 + e809328 commit c388130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ra_assists/src/handlers/reorder_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ fn get_fields_kind(node: &SyntaxNode) -> Vec<SyntaxKind> {
fn get_field_name(node: &SyntaxNode) -> String {
let res = match_ast! {
match node {
ast::RecordField(field) => { field.field_name().map(|it| it.to_string()) },
ast::RecordFieldPat(field) => { field.field_name().map(|it| it.to_string()) },
ast::RecordField(field) => field.field_name().map(|it| it.to_string()),
ast::RecordFieldPat(field) => field.field_name().map(|it| it.to_string()),
_ => None,
}
};
Expand Down

0 comments on commit c388130

Please sign in to comment.