diff options
| author | Seiichi Uchida <seuchida@gmail.com> | 2018-03-26 07:38:39 +0900 |
|---|---|---|
| committer | Seiichi Uchida <seuchida@gmail.com> | 2018-03-26 07:38:39 +0900 |
| commit | 48424ea7654bbf1a0b3d747be05b45f799c7e28d (patch) | |
| tree | cfbd755de1b57b0a3b9977869e51c4487a2020a6 /tests | |
| parent | 98c6f7b7313c0053f822a10ab473f31bf1f480ef (diff) | |
Update tests and cargo fmt
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/lib.rs | 24 | ||||
| -rw-r--r-- | tests/target/chains.rs | 5 | ||||
| -rw-r--r-- | tests/target/expr-block.rs | 14 | ||||
| -rw-r--r-- | tests/target/match.rs | 5 |
4 files changed, 14 insertions, 34 deletions
diff --git a/tests/lib.rs b/tests/lib.rs index 8c4d67575dc..3b73247f7f8 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -540,19 +540,17 @@ fn rustfmt_diff_make_diff_tests() { let diff = make_diff("a\nb\nc\nd", "a\ne\nc\nd", 3); assert_eq!( diff, - vec![ - Mismatch { - line_number: 1, - line_number_orig: 1, - lines: vec![ - DiffLine::Context("a".into()), - DiffLine::Resulting("b".into()), - DiffLine::Expected("e".into()), - DiffLine::Context("c".into()), - DiffLine::Context("d".into()), - ], - }, - ] + vec![Mismatch { + line_number: 1, + line_number_orig: 1, + lines: vec![ + DiffLine::Context("a".into()), + DiffLine::Resulting("b".into()), + DiffLine::Expected("e".into()), + DiffLine::Context("c".into()), + DiffLine::Context("d".into()), + ], + }] ); } diff --git a/tests/target/chains.rs b/tests/target/chains.rs index 8a41eec2bde..d3e3cad5ebb 100644 --- a/tests/target/chains.rs +++ b/tests/target/chains.rs @@ -233,10 +233,7 @@ impl Foo { if let Some(mi) = attr.meta() { if let Some(value) = mi.value_str() { doc_strings.push(DocFragment::Include( - line, - attr.span, - filename, - contents, + line, attr.span, filename, contents, )); } } diff --git a/tests/target/expr-block.rs b/tests/target/expr-block.rs index 277990c5a60..2bec429e8c8 100644 --- a/tests/target/expr-block.rs +++ b/tests/target/expr-block.rs @@ -114,19 +114,7 @@ fn function_calls() { fn macros() { baz!( - do_not, - add, - trailing, - commas, - inside, - of, - function, - like, - macros, - even, - if_they, - are, - long + do_not, add, trailing, commas, inside, of, function, like, macros, even, if_they, are, long ); baz!(one_item_macro_which_is_also_loooooooooooooooooooooooooooooooooooooooooooooooong); diff --git a/tests/target/match.rs b/tests/target/match.rs index 087fb80ef09..fe565f4c154 100644 --- a/tests/target/match.rs +++ b/tests/target/match.rs @@ -218,10 +218,7 @@ fn issue355() { xc => vec![1, 2], // comment yc => vec![3; 4], // comment yd => looooooooooooooooooooooooooooooooooooooooooooooooooooooooong_func( - aaaaaaaaaa, - bbbbbbbbbb, - cccccccccc, - dddddddddd, + aaaaaaaaaa, bbbbbbbbbb, cccccccccc, dddddddddd, ), } } |
