From 61e1474ab35deb7d54cc2f5d710b901f200b6467 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 28 May 2019 18:46:11 +0300 Subject: fix typos in mbe tests --- 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 84a1564ce..c9ca13bbc 100644 --- a/crates/ra_cli/src/main.rs +++ b/crates/ra_cli/src/main.rs @@ -34,7 +34,7 @@ fn main() -> Result<()> { if !matches.is_present("no-dump") { println!("{}", file.syntax().debug_dump()); } - ::std::mem::forget(file); + std::mem::forget(file); } ("symbols", _) => { let file = file()?; @@ -60,11 +60,11 @@ fn main() -> Result<()> { fn file() -> Result> { let text = read_stdin()?; - Ok(SourceFile::parse(&text)) + Ok(SourceFile::parse(&text).tree) } fn read_stdin() -> Result { let mut buff = String::new(); - ::std::io::stdin().read_to_string(&mut buff)?; + std::io::stdin().read_to_string(&mut buff)?; Ok(buff) } -- cgit v1.2.3