std: replace str::all/any fns and methods with iterators

This commit is contained in:
Huon Wilson 2013-06-10 00:34:23 +10:00
parent 1e8982bdb2
commit b29cd22bce
10 changed files with 15 additions and 60 deletions

View file

@ -588,7 +588,7 @@ pub fn make_command_line(prog: &str, args: &[~str]) -> ~str {
return cmd;
fn append_arg(cmd: &mut ~str, arg: &str) {
let quote = arg.any(|c| c == ' ' || c == '\t');
let quote = arg.iter().any(|c| c == ' ' || c == '\t');
if quote {
cmd.push_char('"');
}