Skip to content

Commit df94b91

Browse files
committed
Revert "perf: small optimization !iter.all => iter.any!"
This reverts commit 4ff0c52.
1 parent 694441d commit df94b91

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bindgen/codegen/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -5909,8 +5909,7 @@ pub(crate) mod utils {
59095909

59105910
// Check that the suffix starts with '@' and is all ASCII decimals
59115911
// after that.
5912-
if suffix[0] != b'@' ||
5913-
suffix[1..].iter().any(|&c| !c.is_ascii_digit())
5912+
if suffix[0] != b'@' || !suffix[1..].iter().all(u8::is_ascii_digit)
59145913
{
59155914
return false;
59165915
}

0 commit comments

Comments
 (0)