Removed deprecated functions map and flat_map for vectors and slices.

This commit is contained in:
Marvin Löbel
2014-03-28 20:42:34 +01:00
parent 86890b9e7c
commit c356e3ba6a
58 changed files with 278 additions and 325 deletions

View File

@@ -70,7 +70,7 @@ pub fn string_to_pat(source_str: ~str) -> @ast::Pat {
// convert a vector of strings to a vector of ast::Ident's
pub fn strs_to_idents(ids: Vec<&str> ) -> Vec<ast::Ident> {
ids.map(|u| token::str_to_ident(*u))
ids.iter().map(|u| token::str_to_ident(*u)).collect()
}
// does the given string match the pattern? whitespace in the first string