1
Fork 0

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

@ -567,7 +567,7 @@ impl Parser {
}
fn parse_ident(&mut self, ident: &str, value: Json) -> Result<Json, Error> {
if str::all(ident, |c| c == self.next_char()) {
if ident.iter().all(|c| c == self.next_char()) {
self.bump();
Ok(value)
} else {