Change iter::find's closure to take a ref
This commit is contained in:
parent
88962eeed8
commit
85bb1fc2c4
9 changed files with 49 additions and 55 deletions
|
|
@ -115,7 +115,7 @@ fn parse_desc_should_parse_simple_doc_attributes() {
|
|||
|
||||
pub fn parse_hidden(+attrs: ~[ast::attribute]) -> bool {
|
||||
do doc_metas(attrs).find |meta| {
|
||||
match attr::get_meta_item_list(meta) {
|
||||
match attr::get_meta_item_list(*meta) {
|
||||
Some(metas) => {
|
||||
let hiddens = attr::find_meta_items_by_name(metas, ~"hidden");
|
||||
vec::is_not_empty(hiddens)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue