From 87cd57d56aeafa1117a6163249d210f39efe8f28 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 25 Aug 2018 12:10:35 +0300 Subject: Refactor --- crates/libsyntax2/tests/test/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crates/libsyntax2/tests/test') diff --git a/crates/libsyntax2/tests/test/main.rs b/crates/libsyntax2/tests/test/main.rs index 7e5dc32d9..18c711aee 100644 --- a/crates/libsyntax2/tests/test/main.rs +++ b/crates/libsyntax2/tests/test/main.rs @@ -9,6 +9,8 @@ use std::{ fmt::Write, }; +use libsyntax2::File; + #[test] fn lexer_tests() { dir_tests(&["lexer"], |text| { @@ -20,8 +22,8 @@ fn lexer_tests() { #[test] fn parser_tests() { dir_tests(&["parser/inline", "parser/ok", "parser/err"], |text| { - let file = libsyntax2::parse(text); - libsyntax2::utils::dump_tree(file.borrowed()) + let file = File::parse(text); + libsyntax2::utils::dump_tree(file.syntax()) }) } -- cgit v1.2.3