Skip to content

Commit 90d9231

Browse files
committed
forgot to run cargo fmt
1 parent 4812c6f commit 90d9231

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/imp.rs

+9-11
Original file line numberDiff line numberDiff line change
@@ -254,16 +254,15 @@ fn strike_through_attributes(
254254

255255
let (mut derive_attrs, rest_attrs) =
256256
strike_attrs
257-
.iter()
258-
.fold((Vec::new(), Vec::new()),
259-
| (mut der, mut rest), i| {
260-
if matches!(&i.path[0], TokenTree::Ident(token) if token == "derive") {
261-
der.push(i.clone());
262-
} else {
263-
rest.push(i.clone());
264-
}
265-
(der, rest)
266-
});
257+
.iter()
258+
.fold((Vec::new(), Vec::new()), |(mut der, mut rest), i| {
259+
if matches!(&i.path[0], TokenTree::Ident(token) if token == "derive") {
260+
der.push(i.clone());
261+
} else {
262+
rest.push(i.clone());
263+
}
264+
(der, rest)
265+
});
267266

268267
// place other attrs after the existing ones
269268
dec_attrs.extend_from_slice(&rest_attrs[..]);
@@ -272,7 +271,6 @@ fn strike_through_attributes(
272271
derive_attrs
273272
.drain(..)
274273
.for_each(|attr| dec_attrs.insert(0, attr));
275-
276274
}
277275

278276
fn recurse_through_type_list(

0 commit comments

Comments
 (0)