mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-17 17:45:10 +02:00
perf(token): Avoid switching to chars
This commit is contained in:
@@ -423,10 +423,7 @@ mod parser {
|
||||
|
||||
if captured.slice_len() < 90
|
||||
&& padding_len == 0
|
||||
&& captured
|
||||
.as_bstr()
|
||||
.iter()
|
||||
.all(|c| !['/', '+'].contains(&c.as_char()))
|
||||
&& captured.as_bstr().iter().all(|c| ![b'/', b'+'].contains(c))
|
||||
{
|
||||
#[allow(clippy::unit_arg)]
|
||||
return Err(ParserError::from_input(input));
|
||||
|
||||
Reference in New Issue
Block a user