std: replace str::all/any fns and methods with iterators
This commit is contained in:
parent
1e8982bdb2
commit
b29cd22bce
10 changed files with 15 additions and 60 deletions
|
|
@ -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('"');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue