diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-07-02 12:38:19 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-07-04 00:46:49 +1000 |
| commit | de0d696561a381e182c792acbe8f608c8be94c3b (patch) | |
| tree | e1468b45552bcd5e026659cf19c8fb185997daa5 /src/libsyntax/ast_util.rs | |
| parent | eee677564216a64f48ebaffa860e4062f2b2d264 (diff) | |
| download | rust-de0d696561a381e182c792acbe8f608c8be94c3b.tar.gz rust-de0d696561a381e182c792acbe8f608c8be94c3b.zip | |
Remove vec::{filter, filtered, filter_map, filter_mapped}, replaced by iterators.
Diffstat (limited to 'src/libsyntax/ast_util.rs')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 529d5bfe70b..ce8e24fd444 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -238,12 +238,12 @@ pub fn unguarded_pat(a: &arm) -> Option<~[@pat]> { } pub fn public_methods(ms: ~[@method]) -> ~[@method] { - do ms.filtered |m| { + do ms.consume_iter().filter |m| { match m.vis { public => true, _ => false } - } + }.collect() } // extract a ty_method from a trait_method. if the trait_method is |
