diff options
author | Aleksey Kladov <[email protected]> | 2019-07-19 11:16:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-19 11:16:30 +0100 |
commit | cf932181cf18c1e5fa99cb024bdb92784ed9649e (patch) | |
tree | 1eb54e6461f429c67291c3e30ea7686e81d37150 /crates/ra_cli | |
parent | f1abc7bdc63fedd5a699b4c495bb23f1b6d254f9 (diff) |
migrate ra_cli to the new rowan
Diffstat (limited to 'crates/ra_cli')
-rw-r--r-- | crates/ra_cli/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_cli/src/main.rs b/crates/ra_cli/src/main.rs index b063193cf..375e2f508 100644 --- a/crates/ra_cli/src/main.rs +++ b/crates/ra_cli/src/main.rs | |||
@@ -7,7 +7,7 @@ use clap::{App, Arg, SubCommand}; | |||
7 | use flexi_logger::Logger; | 7 | use flexi_logger::Logger; |
8 | use ra_ide_api::{file_structure, Analysis}; | 8 | use ra_ide_api::{file_structure, Analysis}; |
9 | use ra_prof::profile; | 9 | use ra_prof::profile; |
10 | use ra_syntax::{AstNode, SourceFile, TreeArc}; | 10 | use ra_syntax::{AstNode, SourceFile}; |
11 | 11 | ||
12 | type Result<T> = std::result::Result<T, Box<dyn Error + Send + Sync>>; | 12 | type Result<T> = std::result::Result<T, Box<dyn Error + Send + Sync>>; |
13 | 13 | ||
@@ -100,9 +100,9 @@ fn main() -> Result<()> { | |||
100 | Ok(()) | 100 | Ok(()) |
101 | } | 101 | } |
102 | 102 | ||
103 | fn file() -> Result<TreeArc<SourceFile>> { | 103 | fn file() -> Result<SourceFile> { |
104 | let text = read_stdin()?; | 104 | let text = read_stdin()?; |
105 | Ok(SourceFile::parse(&text).tree().to_owned()) | 105 | Ok(SourceFile::parse(&text).tree()) |
106 | } | 106 | } |
107 | 107 | ||
108 | fn read_stdin() -> Result<String> { | 108 | fn read_stdin() -> Result<String> { |