From d402974aa0af6de290245a9d2a69a5d56c4fa610 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 18 Jul 2019 19:23:05 +0300 Subject: migrate ra_syntax to the new rowan API --- crates/ra_syntax/src/validation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_syntax/src/validation.rs') 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 { .visit::(validate_literal) .visit::(block::validate_block_node) .visit::(field_expr::validate_field_expr_node) - .accept(node); + .accept(&node); } errors } // FIXME: kill duplication -fn validate_literal(literal: &ast::Literal, acc: &mut Vec) { +fn validate_literal(literal: ast::Literal, acc: &mut Vec) { let token = literal.token(); let text = token.text().as_str(); match token.kind() { -- cgit v1.2.3