Skip to content

Commit aca22d4

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 163741 b: refs/heads/master c: ca001e1 h: refs/heads/master i: 163739: 202215e v: v3
1 parent 9f6a483 commit aca22d4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c3fe7105ba4362bce7f795f4502163bcec039d74
2+
refs/heads/master: ca001e1bd0accdfe285c50918d1d48730d124999
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8443b09e361b96d1f9b7f45a65ed0d31c0e86e70
55
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42

trunk/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)