1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

refactor/polish ~ fix cargo clippy complaints (unreadable_literal)

This commit is contained in:
Roy Ivy III 2020-02-06 22:43:07 -06:00
parent 75f05df119
commit 9b145bb6c4

View file

@ -41,9 +41,9 @@ fn crc_entry(input: u8) -> u32 {
let mut crc = (input as u32) << 24; let mut crc = (input as u32) << 24;
for _ in 0..8 { for _ in 0..8 {
if crc & 0x80000000 != 0 { if crc & 0x8000_0000 != 0 {
crc <<= 1; crc <<= 1;
crc ^= 0x04c11db7; crc ^= 0x04c1_1db7;
} else { } else {
crc <<= 1; crc <<= 1;
} }