mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Remove more unnecessary braces
This commit is contained in:
@@ -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,
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user