From deab4caa7b1ba81c1b7e6561bc270bbde6467f13 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 12 Jul 2019 19:41:13 +0300 Subject: make Parse fields private this is in preparation for the new rowan API --- crates/ra_cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_cli') diff --git a/crates/ra_cli/src/main.rs b/crates/ra_cli/src/main.rs index 48bc64450..b063193cf 100644 --- a/crates/ra_cli/src/main.rs +++ b/crates/ra_cli/src/main.rs @@ -102,7 +102,7 @@ fn main() -> Result<()> { fn file() -> Result> { let text = read_stdin()?; - Ok(SourceFile::parse(&text).tree) + Ok(SourceFile::parse(&text).tree().to_owned()) } fn read_stdin() -> Result { -- cgit v1.2.3