diff options
author | Christopher Durham <[email protected]> | 2018-01-27 23:31:23 +0000 |
---|---|---|
committer | Christopher Durham <[email protected]> | 2018-01-27 23:31:23 +0000 |
commit | 4de3c97b2afea55834cd16368f950133459d8c73 (patch) | |
tree | 9091b5dc1b116e5cbb47a535ffa922e66776c800 /tests/parser.rs | |
parent | 357cd3358167daa38f3ff34d225e1501faff6015 (diff) |
Enforce rustfmt format
Diffstat (limited to 'tests/parser.rs')
-rw-r--r-- | tests/parser.rs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/parser.rs b/tests/parser.rs index 370b02c74..37c9021ef 100644 --- a/tests/parser.rs +++ b/tests/parser.rs | |||
@@ -2,18 +2,15 @@ extern crate file; | |||
2 | extern crate libsyntax2; | 2 | extern crate libsyntax2; |
3 | extern crate testutils; | 3 | extern crate testutils; |
4 | 4 | ||
5 | use libsyntax2::{tokenize, parse}; | 5 | use libsyntax2::{parse, tokenize}; |
6 | use libsyntax2::utils::dump_tree; | 6 | use libsyntax2::utils::dump_tree; |
7 | use testutils::dir_tests; | 7 | use testutils::dir_tests; |
8 | 8 | ||
9 | #[test] | 9 | #[test] |
10 | fn parser_tests() { | 10 | fn parser_tests() { |
11 | dir_tests( | 11 | dir_tests(&["parser/ok", "parser/err"], |text| { |
12 | &["parser/ok", "parser/err"], | 12 | let tokens = tokenize(text); |
13 | |text| { | 13 | let file = parse(text.to_string(), &tokens); |
14 | let tokens = tokenize(text); | 14 | dump_tree(&file) |
15 | let file = parse(text.to_string(), &tokens); | 15 | }) |
16 | dump_tree(&file) | ||
17 | } | ||
18 | ) | ||
19 | } | 16 | } |