diff options
Diffstat (limited to 'crates/libeditor/tests')
-rw-r--r-- | crates/libeditor/tests/test.rs | 8 |
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 | ||
6 | use assert_eq_text::{assert_eq_dbg}; | 6 | use assert_eq_text::{assert_eq_dbg}; |
7 | use libeditor::{ | 7 | use 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 | ||
237 | fn file(text: &str) -> ParsedFile { | 237 | fn file(text: &str) -> File { |
238 | ParsedFile::parse(text) | 238 | File::parse(text) |
239 | } | 239 | } |
240 | 240 | ||
241 | fn check_action<F: Fn(&ParsedFile, TextUnit) -> Option<ActionResult>>( | 241 | fn 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, |