diff options
Diffstat (limited to 'crates/ra_syntax/src/validation.rs')
-rw-r--r-- | crates/ra_syntax/src/validation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/validation.rs b/crates/ra_syntax/src/validation.rs index 87522ec18..7140d10c3 100644 --- a/crates/ra_syntax/src/validation.rs +++ b/crates/ra_syntax/src/validation.rs | |||
@@ -19,13 +19,13 @@ pub(crate) fn validate(file: &SourceFile) -> Vec<SyntaxError> { | |||
19 | .visit::<ast::Literal, _>(validate_literal) | 19 | .visit::<ast::Literal, _>(validate_literal) |
20 | .visit::<ast::Block, _>(block::validate_block_node) | 20 | .visit::<ast::Block, _>(block::validate_block_node) |
21 | .visit::<ast::FieldExpr, _>(field_expr::validate_field_expr_node) | 21 | .visit::<ast::FieldExpr, _>(field_expr::validate_field_expr_node) |
22 | .accept(node); | 22 | .accept(&node); |
23 | } | 23 | } |
24 | errors | 24 | errors |
25 | } | 25 | } |
26 | 26 | ||
27 | // FIXME: kill duplication | 27 | // FIXME: kill duplication |
28 | fn validate_literal(literal: &ast::Literal, acc: &mut Vec<SyntaxError>) { | 28 | fn validate_literal(literal: ast::Literal, acc: &mut Vec<SyntaxError>) { |
29 | let token = literal.token(); | 29 | let token = literal.token(); |
30 | let text = token.text().as_str(); | 30 | let text = token.text().as_str(); |
31 | match token.kind() { | 31 | match token.kind() { |