Skip to content

Commit 8864208

Browse files
committed
Fix beta issue
1 parent 187bffd commit 8864208

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/util.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -231,18 +231,18 @@ pub(crate) fn validate_checksum(buffer: &[u8], expected: &str) -> Result<(), Err
231231
let mut cur;
232232

233233
match exp[0] {
234-
b'A'...b'F' => cur = exp[0] - b'A' + 10,
235-
b'a'...b'f' => cur = exp[0] - b'a' + 10,
236-
b'0'...b'9' => cur = exp[0] - b'0',
234+
b'A'..=b'F' => cur = exp[0] - b'A' + 10,
235+
b'a'..=b'f' => cur = exp[0] - b'a' + 10,
236+
b'0'..=b'9' => cur = exp[0] - b'0',
237237
c => bail!("invalid byte in expected checksum string {}", c),
238238
}
239239

240240
cur <<= 4;
241241

242242
match exp[1] {
243-
b'A'...b'F' => cur |= exp[1] - b'A' + 10,
244-
b'a'...b'f' => cur |= exp[1] - b'a' + 10,
245-
b'0'...b'9' => cur |= exp[1] - b'0',
243+
b'A'..=b'F' => cur |= exp[1] - b'A' + 10,
244+
b'a'..=b'f' => cur |= exp[1] - b'a' + 10,
245+
b'0'..=b'9' => cur |= exp[1] - b'0',
246246
c => bail!("invalid byte in expected checksum string {}", c),
247247
}
248248

0 commit comments

Comments
 (0)