From ba9c83cc5e139453d5d68a44674ec4c26f96fa07 Mon Sep 17 00:00:00 2001 From: PoiScript Date: Sun, 10 May 2020 01:25:35 +0800 Subject: [PATCH] fix(parser): use char::is_whitespace (#22) --- src/parse/combinators.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse/combinators.rs b/src/parse/combinators.rs index 746a097..f5d518e 100644 --- a/src/parse/combinators.rs +++ b/src/parse/combinators.rs @@ -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)); }