Skip to content

Commit b112687

Browse files
committed
Fix arg order for vec::map call
1 parent 58a81a6 commit b112687

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/comp/middle/resolve.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,10 +1701,11 @@ fn find_impls_in_item(i: @ast::item, &impls: [@_impl],
17011701
alt ck_exports { some(m) { is_exported(i.ident, m) } _ { true } } {
17021702
impls += [@{did: local_def(i.id),
17031703
ident: i.ident,
1704-
methods: vec::map({|m| @{did: local_def(m.node.id),
1705-
n_tps: vec::len(m.node.tps),
1706-
ident: m.node.ident}},
1707-
mthds)}];
1704+
methods: vec::map(mthds, {|m|
1705+
@{did: local_def(m.node.id),
1706+
n_tps: vec::len(m.node.tps),
1707+
ident: m.node.ident}
1708+
})}];
17081709
}
17091710
}
17101711
_ {}

0 commit comments

Comments
 (0)