Skip to content

Commit

Permalink
chore: made clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxOhn committed May 5, 2023
1 parent 0c0ad34 commit 8492d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parse/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ impl<R> FileReader<R> {
.and_then(|mut num| {
let mut n = num
.next()
.filter(|byte| (b'0'..=b'9').contains(byte))
.filter(|byte| byte.is_ascii_digit())
.map(|&byte| byte & 0xF)?;

for byte in num {
if !(b'0'..=b'9').contains(byte) {
if !byte.is_ascii_digit() {
break;
}

Expand Down

0 comments on commit 8492d91

Please sign in to comment.