Format with rustfmt 0.99.5-nightly
diff --git a/tests/common/parse.rs b/tests/common/parse.rs
index a0cc40c..1c59f63 100644
--- a/tests/common/parse.rs
+++ b/tests/common/parse.rs
@@ -29,7 +29,8 @@
&sess,
FileName::Custom("test_precedence".to_string()),
input.to_string(),
- ).parse_expr();
+ )
+ .parse_expr();
match e {
Ok(expr) => Some(expr),
Err(mut diagnostic) => {
diff --git a/tests/test_derive_input.rs b/tests/test_derive_input.rs
index 045e506..db62f2e 100644
--- a/tests/test_derive_input.rs
+++ b/tests/test_derive_input.rs
@@ -102,7 +102,8 @@
ty: TypePath {
qself: None,
path: ident("Ident").into(),
- }.into(),
+ }
+ .into(),
},
Field {
ident: Some(ident("attrs")),
@@ -132,7 +133,8 @@
),
},],
},
- }.into(),
+ }
+ .into(),
},
],
}),
@@ -150,7 +152,8 @@
NestedMeta::Meta(Meta::Word(ident("Debug"))),
NestedMeta::Meta(Meta::Word(ident("Clone"))),
],
- }.into();
+ }
+ .into();
assert_eq!(
expected_meta_item,
@@ -197,7 +200,8 @@
ty: TypeTuple {
paren_token: Default::default(),
elems: Punctuated::new(),
- }.into(),
+ }
+ .into(),
},
Field {
ident: Some(ident("value")),
@@ -207,7 +211,8 @@
ty: TypePath {
qself: None,
path: ident("T").into(),
- }.into(),
+ }
+ .into(),
},
],
},
@@ -300,7 +305,8 @@
ty: TypePath {
qself: None,
path: ident("T").into(),
- }.into(),
+ }
+ .into(),
},],
}),
discriminant: None,
@@ -318,7 +324,8 @@
ty: TypePath {
qself: None,
path: ident("E").into(),
- }.into(),
+ }
+ .into(),
},],
}),
discriminant: None,
@@ -387,7 +394,8 @@
" See the std::result module documentation for details.",
Span::call_site(),
)),
- }.into(),
+ }
+ .into(),
Meta::Word(ident("must_use")),
];
@@ -572,7 +580,8 @@
ty: TypePath {
qself: None,
path: ident("u8").into(),
- }.into(),
+ }
+ .into(),
},],
}),
semi_token: Some(Default::default()),
diff --git a/tests/test_generics.rs b/tests/test_generics.rs
index 5f10593..1cf2953 100644
--- a/tests/test_generics.rs
+++ b/tests/test_generics.rs
@@ -64,7 +64,8 @@
TypeTuple {
elems: Default::default(),
paren_token: Default::default(),
- }.into(),
+ }
+ .into(),
),
colon_token: Some(Default::default()),
eq_token: Default::default(),
@@ -78,7 +79,8 @@
bounded_ty: TypePath {
qself: None,
path: ident("T").into(),
- }.into(),
+ }
+ .into(),
bounds: punctuated![TypeParamBound::Trait(TraitBound {
paren_token: None,
modifier: TraitBoundModifier::None,
diff --git a/tests/test_grouping.rs b/tests/test_grouping.rs
index 78211ec..2645cff 100644
--- a/tests/test_grouping.rs
+++ b/tests/test_grouping.rs
@@ -45,12 +45,14 @@
TokenTree::Literal(Literal::i32_suffixed(2)),
TokenTree::Punct(Punct::new('+', Spacing::Alone)),
TokenTree::Literal(Literal::i32_suffixed(3)),
- ].into_iter()
+ ]
+ .into_iter()
.collect(),
)),
TokenTree::Punct(Punct::new('*', Spacing::Alone)),
TokenTree::Literal(Literal::i32_suffixed(4)),
- ].into_iter()
+ ]
+ .into_iter()
.collect();
assert_eq!(raw.to_string(), "1i32 + 2i32 + 3i32 * 4i32");
diff --git a/tests/test_meta_item.rs b/tests/test_meta_item.rs
index 8c33d3f..f3c75a9 100644
--- a/tests/test_meta_item.rs
+++ b/tests/test_meta_item.rs
@@ -105,7 +105,8 @@
ident: ident("bar").into(),
eq_token: Default::default(),
lit: lit(Literal::i32_unsuffixed(5)),
- }.into(),
+ }
+ .into(),
)],
},
)
@@ -126,7 +127,8 @@
value: true,
span: Span::call_site()
}),
- }.into(),
+ }
+ .into(),
)],
},
)
@@ -146,7 +148,8 @@
ident: ident("name").into(),
eq_token: Default::default(),
lit: lit(Literal::i32_unsuffixed(5)),
- }.into(),
+ }
+ .into(),
),
NestedMeta::Meta(
MetaList {
@@ -157,9 +160,11 @@
ident: ident("name2").into(),
eq_token: Default::default(),
lit: lit(Literal::i32_unsuffixed(6)),
- }.into(),
+ }
+ .into(),
)],
- }.into(),
+ }
+ .into(),
),
NestedMeta::Meta(Meta::Word(ident("word2").into())),
],