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
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue