aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/tests/test.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-25 09:44:58 +0100
committerAleksey Kladov <[email protected]>2018-08-25 09:44:58 +0100
commit220d285b4afb250e59a08e9b1ad38c2fc2275782 (patch)
treeab32fc8d58ee04fc5afae20bc80f02c6b2557a39 /crates/libeditor/tests/test.rs
parentcf278ed3bf71d336422f7d7d7d51be92b717b720 (diff)
rename ParsedFile -> File
Diffstat (limited to 'crates/libeditor/tests/test.rs')
-rw-r--r--crates/libeditor/tests/test.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/libeditor/tests/test.rs b/crates/libeditor/tests/test.rs
index 4f7c2e07a..3114a128e 100644
--- a/crates/libeditor/tests/test.rs
+++ b/crates/libeditor/tests/test.rs
@@ -5,7 +5,7 @@ extern crate assert_eq_text;
5 5
6use assert_eq_text::{assert_eq_dbg}; 6use assert_eq_text::{assert_eq_dbg};
7use libeditor::{ 7use libeditor::{
8 ParsedFile, TextUnit, TextRange, ActionResult, 8 File, TextUnit, TextRange, ActionResult,
9 highlight, runnables, extend_selection, file_structure, 9 highlight, runnables, extend_selection, file_structure,
10 flip_comma, add_derive, add_impl, matching_brace, 10 flip_comma, add_derive, add_impl, matching_brace,
11 join_lines, 11 join_lines,
@@ -234,11 +234,11 @@ struct Foo { f: u32 }
234"); 234");
235} 235}
236 236
237fn file(text: &str) -> ParsedFile { 237fn file(text: &str) -> File {
238 ParsedFile::parse(text) 238 File::parse(text)
239} 239}
240 240
241fn check_action<F: Fn(&ParsedFile, TextUnit) -> Option<ActionResult>>( 241fn check_action<F: Fn(&File, TextUnit) -> Option<ActionResult>>(
242 before: &str, 242 before: &str,
243 after: &str, 243 after: &str,
244 f: F, 244 f: F,