Take &Pat
This commit is contained in:
parent
cd7a9b7234
commit
eb5cbfebfd
2 changed files with 7 additions and 7 deletions
|
|
@ -636,7 +636,7 @@ pub fn is_item_impl(item: @ast::item) -> bool {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn walk_pat(pat: @Pat, it: |@Pat| -> bool) -> bool {
|
||||
pub fn walk_pat(pat: &Pat, it: |&Pat| -> bool) -> bool {
|
||||
if !it(pat) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue