fix(parser): use char::is_whitespace (#22)
This commit is contained in:
parent
a99702a4da
commit
ba9c83cc5e
|
@ -112,7 +112,7 @@ pub fn blank_lines_count(input: &str) -> IResult<&str, usize, ()> {
|
|||
|
||||
debug_assert_ne!(input, input_);
|
||||
|
||||
if !line_.as_bytes().iter().all(u8::is_ascii_whitespace) {
|
||||
if !line_.chars().all(char::is_whitespace) {
|
||||
return Ok((input, count));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue