From cf932181cf18c1e5fa99cb024bdb92784ed9649e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 19 Jul 2019 13:16:30 +0300 Subject: migrate ra_cli to the new rowan --- crates/ra_cli/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_cli') 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}; use flexi_logger::Logger; use ra_ide_api::{file_structure, Analysis}; use ra_prof::profile; -use ra_syntax::{AstNode, SourceFile, TreeArc}; +use ra_syntax::{AstNode, SourceFile}; type Result = std::result::Result>; @@ -100,9 +100,9 @@ fn main() -> Result<()> { Ok(()) } -fn file() -> Result> { +fn file() -> Result { let text = read_stdin()?; - Ok(SourceFile::parse(&text).tree().to_owned()) + Ok(SourceFile::parse(&text).tree()) } fn read_stdin() -> Result { -- cgit v1.2.3