From d3c90ded2b9a4f75e101fa3abc60cd3aebc439c9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 17 Aug 2018 22:00:13 +0300 Subject: Borrowed AST --- crates/libeditor/tests/test.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/libeditor/tests') diff --git a/crates/libeditor/tests/test.rs b/crates/libeditor/tests/test.rs index cc4226710..a2e26003a 100644 --- a/crates/libeditor/tests/test.rs +++ b/crates/libeditor/tests/test.rs @@ -5,7 +5,7 @@ extern crate assert_eq_text; use assert_eq_text::{assert_eq_dbg}; use libeditor::{ - File, TextUnit, TextRange, ActionResult, CursorPosition, + ParsedFile, TextUnit, TextRange, ActionResult, CursorPosition, highlight, runnables, extend_selection, file_structure, flip_comma, add_derive, matching_brace, }; @@ -146,11 +146,11 @@ fn test_matching_brace() { ); } -fn file(text: &str) -> File { - File::parse(text) +fn file(text: &str) -> ParsedFile { + ParsedFile::parse(text) } -fn check_action Option>( +fn check_action Option>( before: &str, after: &str, f: F, -- cgit v1.2.3