Skip to content

Commit ca001e1

Browse files
author
Jorge Aparicio
committed
librustdoc: fix fallout
1 parent c3fe710 commit ca001e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/fold.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ pub trait DocFolder {
7979
StructVariant(mut j) => {
8080
let mut foo = Vec::new(); swap(&mut foo, &mut j.fields);
8181
let num_fields = foo.len();
82-
let c = |x| self.fold_item(x);
83-
j.fields.extend(foo.into_iter().filter_map(c));
82+
j.fields.extend(foo.into_iter().filter_map(|x| self.fold_item(x)));
8483
j.fields_stripped |= num_fields != j.fields.len();
8584
VariantItem(Variant {kind: StructVariant(j), ..i2})
8685
},

0 commit comments

Comments
 (0)