simplifications

This commit is contained in:
Folkert 2022-05-15 22:00:47 +02:00
parent 225254d7e5
commit 1a49930d1d
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 26 additions and 36 deletions

View file

@ -2789,10 +2789,11 @@ fn chomp_ops(bytes: &[u8]) -> &str {
let mut chomped = 0;
for c in bytes.iter() {
if !BINOP_CHAR_MASK[*c as usize] {
if let Some(true) = BINOP_CHAR_MASK.get(*c as usize) {
chomped += 1;
} else {
break;
}
chomped += 1;
}
unsafe {