From c356e3ba6a12c3294a9a428ef9120cff9306bf4b Mon Sep 17 00:00:00 2001 From: Marvin Löbel Date: Fri, 28 Mar 2014 20:42:34 +0100 Subject: Removed deprecated functions `map` and `flat_map` for vectors and slices. --- src/libsyntax/parse/comments.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse/comments.rs') diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index 53586a66513..7d337e9c078 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -104,7 +104,7 @@ pub fn strip_doc_comment_decoration(comment: &str) -> ~str { } if can_trim { - lines.map(|line| line.slice(i + 1, line.len()).to_owned()) + lines.iter().map(|line| line.slice(i + 1, line.len()).to_owned()).collect() } else { lines } -- cgit 1.4.1-3-g733a5