From d6ded6788dbf24a6545f579a23a92553efae1c2e Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 18 Mar 2012 15:26:05 -0700 Subject: [PATCH] core: vec::filter_map doesn't require a copyable T --- src/libcore/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 6beda8306e2d..09292fc11612 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -430,7 +430,7 @@ Apply a function to each element of a vector and return the results If function `f` returns `none` then that element is excluded from the resulting vector. "] -fn filter_map(v: [T], f: fn(T) -> option) +fn filter_map(v: [T], f: fn(T) -> option) -> [U] { let mut result = []; for elem: T in v {