diff options
Diffstat (limited to 'crates/cli')
-rw-r--r-- | crates/cli/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index bcb0c9b98..68a531f93 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs | |||
@@ -72,7 +72,7 @@ fn main() -> Result<()> { | |||
72 | 72 | ||
73 | fn file() -> Result<File> { | 73 | fn file() -> Result<File> { |
74 | let text = read_stdin()?; | 74 | let text = read_stdin()?; |
75 | Ok(libeditor::parse(&text)) | 75 | Ok(File::parse(&text)) |
76 | } | 76 | } |
77 | 77 | ||
78 | fn read_stdin() -> Result<String> { | 78 | fn read_stdin() -> Result<String> { |
@@ -91,7 +91,7 @@ fn render_test(file: &Path, line: usize) -> Result<(String, String)> { | |||
91 | None => bail!("No test found at line {} at {}", line, file.display()), | 91 | None => bail!("No test found at line {} at {}", line, file.display()), |
92 | Some((_start_line, test)) => test, | 92 | Some((_start_line, test)) => test, |
93 | }; | 93 | }; |
94 | let file = libeditor::parse(&test.text); | 94 | let file = File::parse(&test.text); |
95 | let tree = syntax_tree(&file); | 95 | let tree = syntax_tree(&file); |
96 | Ok((test.text, tree)) | 96 | Ok((test.text, tree)) |
97 | } | 97 | } |