diff options
author | Aleksey Kladov <[email protected]> | 2020-04-07 08:22:33 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-07 08:22:33 +0100 |
commit | baf9fcc38ebd5a52b22fdf115a7475f9002058f6 (patch) | |
tree | e4dd83fca52933e952d4e08e6f6fa588bfbdc319 /crates/ra_syntax | |
parent | 27285f93acffbeca45c7656f65d66539a2f7fcb4 (diff) | |
parent | 52fd2c8e4858c548195edceb83c02437d2d28ee5 (diff) |
Merge pull request #3866 from lnicola/fewer-braces
Fix unnecessary braces warnings
Diffstat (limited to 'crates/ra_syntax')
-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 | } |