diff options
author | Aleksey Kladov <[email protected]> | 2019-05-28 16:46:11 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-05-28 16:46:11 +0100 |
commit | 61e1474ab35deb7d54cc2f5d710b901f200b6467 (patch) | |
tree | 158afa2f165a70fdcb5870c940cc9653854e59fa /crates/ra_cli/src | |
parent | c8bcfe6a05d82e151d459bcd2bd8a7b2742f7a66 (diff) |
fix typos in mbe tests
Diffstat (limited to 'crates/ra_cli/src')
-rw-r--r-- | crates/ra_cli/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<()> { | |||
34 | if !matches.is_present("no-dump") { | 34 | if !matches.is_present("no-dump") { |
35 | println!("{}", file.syntax().debug_dump()); | 35 | println!("{}", file.syntax().debug_dump()); |
36 | } | 36 | } |
37 | ::std::mem::forget(file); | 37 | std::mem::forget(file); |
38 | } | 38 | } |
39 | ("symbols", _) => { | 39 | ("symbols", _) => { |
40 | let file = file()?; | 40 | let file = file()?; |
@@ -60,11 +60,11 @@ fn main() -> Result<()> { | |||
60 | 60 | ||
61 | fn file() -> Result<TreeArc<SourceFile>> { | 61 | fn file() -> Result<TreeArc<SourceFile>> { |
62 | let text = read_stdin()?; | 62 | let text = read_stdin()?; |
63 | Ok(SourceFile::parse(&text)) | 63 | Ok(SourceFile::parse(&text).tree) |
64 | } | 64 | } |
65 | 65 | ||
66 | fn read_stdin() -> Result<String> { | 66 | fn read_stdin() -> Result<String> { |
67 | let mut buff = String::new(); | 67 | let mut buff = String::new(); |
68 | ::std::io::stdin().read_to_string(&mut buff)?; | 68 | std::io::stdin().read_to_string(&mut buff)?; |
69 | Ok(buff) | 69 | Ok(buff) |
70 | } | 70 | } |