diff options
author | Laurențiu Nicola <[email protected]> | 2020-04-06 15:21:33 +0100 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2020-04-06 15:21:33 +0100 |
commit | 52fd2c8e4858c548195edceb83c02437d2d28ee5 (patch) | |
tree | 344f7bd6402f3bd846b437c1a8cfc6165881492d /crates/ra_syntax/src | |
parent | 2603a9e628d304c8cb8fd08979e2f9c9afeac69e (diff) |
Fix unnecessary braces warnings
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/validation.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/ra_syntax/src/validation.rs b/crates/ra_syntax/src/validation.rs index 7915cf8cb..f85b3e61b 100644 --- a/crates/ra_syntax/src/validation.rs +++ b/crates/ra_syntax/src/validation.rs | |||
@@ -88,12 +88,12 @@ pub(crate) fn validate(root: &SyntaxNode) -> Vec<SyntaxError> { | |||
88 | for node in root.descendants() { | 88 | for node in root.descendants() { |
89 | match_ast! { | 89 | match_ast! { |
90 | match node { | 90 | match node { |
91 | ast::Literal(it) => { validate_literal(it, &mut errors) }, | 91 | ast::Literal(it) => validate_literal(it, &mut errors), |
92 | ast::BlockExpr(it) => { block::validate_block_expr(it, &mut errors) }, | 92 | ast::BlockExpr(it) => block::validate_block_expr(it, &mut errors), |
93 | ast::FieldExpr(it) => { validate_numeric_name(it.name_ref(), &mut errors) }, | 93 | ast::FieldExpr(it) => validate_numeric_name(it.name_ref(), &mut errors), |
94 | ast::RecordField(it) => { validate_numeric_name(it.name_ref(), &mut errors) }, | 94 | ast::RecordField(it) => validate_numeric_name(it.name_ref(), &mut errors), |
95 | ast::Visibility(it) => { validate_visibility(it, &mut errors) }, | 95 | ast::Visibility(it) => validate_visibility(it, &mut errors), |
96 | ast::RangeExpr(it) => { validate_range_expr(it, &mut errors) }, | 96 | ast::RangeExpr(it) => validate_range_expr(it, &mut errors), |
97 | _ => (), | 97 | _ => (), |
98 | } | 98 | } |
99 | } | 99 | } |