chore: made clippy happy

This commit is contained in:
MaxOhn
2023-05-05 15:03:13 +02:00
parent 0c0ad34827
commit 8492d91a61
+2 -2
View File
@@ -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;
}