-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use
Utf8Chunks
in unexpected_token
instead of from_utf8
.
This is not actually faster (if the string is valid UTF-8 it will be iterated until the end), but at least we don't need to use unsafe code.
- Loading branch information
Showing
1 changed file
with
16 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters