aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cli
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_cli')
-rw-r--r--crates/ra_cli/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_cli/src/main.rs b/crates/ra_cli/src/main.rs
index 43fb2fc4c..6b5be27be 100644
--- a/crates/ra_cli/src/main.rs
+++ b/crates/ra_cli/src/main.rs
@@ -3,7 +3,7 @@ use std::{fs, io::Read, path::Path, time::Instant};
3use clap::{App, Arg, SubCommand}; 3use clap::{App, Arg, SubCommand};
4use join_to_string::join; 4use join_to_string::join;
5use ra_ide_api_light::{extend_selection, file_structure, syntax_tree}; 5use ra_ide_api_light::{extend_selection, file_structure, syntax_tree};
6use ra_syntax::{SourceFile, TextRange, TreePtr, AstNode}; 6use ra_syntax::{SourceFile, TextRange, TreeArc, AstNode};
7use tools::collect_tests; 7use tools::collect_tests;
8 8
9type Result<T> = ::std::result::Result<T, failure::Error>; 9type Result<T> = ::std::result::Result<T, failure::Error>;
@@ -71,7 +71,7 @@ fn main() -> Result<()> {
71 Ok(()) 71 Ok(())
72} 72}
73 73
74fn file() -> Result<TreePtr<SourceFile>> { 74fn file() -> Result<TreeArc<SourceFile>> {
75 let text = read_stdin()?; 75 let text = read_stdin()?;
76 Ok(SourceFile::parse(&text)) 76 Ok(SourceFile::parse(&text))
77} 77}