aboutsummaryrefslogtreecommitdiff
path: root/crates/cli
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-17 20:00:13 +0100
committerAleksey Kladov <[email protected]>2018-08-17 20:00:13 +0100
commitd3c90ded2b9a4f75e101fa3abc60cd3aebc439c9 (patch)
tree6d2388eb68605331a0dd090269372bc98dd038cd /crates/cli
parent70097504f78c4c41368a0b864a94df95fb9c27f7 (diff)
Borrowed AST
Diffstat (limited to 'crates/cli')
-rw-r--r--crates/cli/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs
index fc28691fc..e8e2ce7ee 100644
--- a/crates/cli/src/main.rs
+++ b/crates/cli/src/main.rs
@@ -10,7 +10,7 @@ use std::{
10}; 10};
11use clap::{App, Arg, SubCommand}; 11use clap::{App, Arg, SubCommand};
12use tools::collect_tests; 12use tools::collect_tests;
13use libeditor::{File, syntax_tree, file_structure}; 13use libeditor::{ParsedFile, syntax_tree, file_structure};
14 14
15type Result<T> = ::std::result::Result<T, failure::Error>; 15type Result<T> = ::std::result::Result<T, failure::Error>;
16 16
@@ -68,7 +68,7 @@ fn main() -> Result<()> {
68 Ok(()) 68 Ok(())
69} 69}
70 70
71fn file() -> Result<File> { 71fn file() -> Result<ParsedFile> {
72 let text = read_stdin()?; 72 let text = read_stdin()?;
73 Ok(libeditor::parse(&text)) 73 Ok(libeditor::parse(&text))
74} 74}