Implement TRY_CAST (#299)

Adds support for `TRY_CAST` and fixes a clippy error
This commit is contained in:
Mike Seddon 2021-03-22 09:26:16 +11:00 committed by GitHub
parent 43fef23bc8
commit e6e37b47db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 59 additions and 7 deletions

View file

@ -626,6 +626,7 @@ impl<'a> Tokenizer<'a> {
}
}
#[allow(clippy::unnecessary_wraps)]
fn consume_and_return(
&self,
chars: &mut Peekable<Chars<'_>>,