Skip to content

Commit 92229a3

Browse files
committed
Fix clippy warning
1 parent f6cfa87 commit 92229a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl<const N: usize> Reader<N> {
203203
} else {
204204
1.0
205205
};
206-
while i < n && matches!(buf[i], b'0'..=b'9') {
206+
while i < n && buf[i].is_ascii_digit() {
207207
int = int * 10 + (buf[i] - b'0') as usize;
208208
i += 1;
209209
}

0 commit comments

Comments
 (0)