mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
fix typos in mbe tests
This commit is contained in:
parent
c8bcfe6a05
commit
61e1474ab3
29 changed files with 92 additions and 91 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue