librustdoc: fix fallout
This commit is contained in:
parent
c3fe7105ba
commit
ca001e1bd0
@ -79,8 +79,7 @@ pub trait DocFolder {
|
|||||||
StructVariant(mut j) => {
|
StructVariant(mut j) => {
|
||||||
let mut foo = Vec::new(); swap(&mut foo, &mut j.fields);
|
let mut foo = Vec::new(); swap(&mut foo, &mut j.fields);
|
||||||
let num_fields = foo.len();
|
let num_fields = foo.len();
|
||||||
let c = |x| self.fold_item(x);
|
j.fields.extend(foo.into_iter().filter_map(|x| self.fold_item(x)));
|
||||||
j.fields.extend(foo.into_iter().filter_map(c));
|
|
||||||
j.fields_stripped |= num_fields != j.fields.len();
|
j.fields_stripped |= num_fields != j.fields.len();
|
||||||
VariantItem(Variant {kind: StructVariant(j), ..i2})
|
VariantItem(Variant {kind: StructVariant(j), ..i2})
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user