fix(parser): use char::is_whitespace (#22)

This commit is contained in:
PoiScript 2020-05-10 01:25:35 +08:00
parent a99702a4da
commit ba9c83cc5e

View file

@ -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));
}