fix typos in mbe tests

This commit is contained in:
Aleksey Kladov 2019-05-28 18:46:11 +03:00
parent c8bcfe6a05
commit 61e1474ab3
29 changed files with 92 additions and 91 deletions

View file

@ -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<TreeArc<SourceFile>> {
let text = read_stdin()?;
Ok(SourceFile::parse(&text))
Ok(SourceFile::parse(&text).tree)
}
fn read_stdin() -> Result<String> {
let mut buff = String::new();
::std::io::stdin().read_to_string(&mut buff)?;
std::io::stdin().read_to_string(&mut buff)?;
Ok(buff)
}