Skip to content

Commit ab053d3

Browse files
committed
Replace 2 inconsistent ASCII checks with is_ascii()
1 parent 9c812bc commit ab053d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parse.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fn skip_whitespace(input: Cursor) -> Cursor {
108108
s = s.advance(1);
109109
continue;
110110
}
111-
b if b <= 0x7f => {}
111+
b if b.is_ascii() => {}
112112
_ => {
113113
let ch = s.chars().next().unwrap();
114114
if is_whitespace(ch) {
@@ -456,7 +456,7 @@ fn cooked_byte_string(mut input: Cursor) -> Result<Cursor, Reject> {
456456
}
457457
_ => break,
458458
},
459-
b if b < 0x80 => {}
459+
b if b.is_ascii() => {}
460460
_ => break,
461461
}
462462
}

0 commit comments

Comments
 (0)