refactor/polish ~ fix cargo clippy complaints (allow unreadable_literal {for dynamic code})

This commit is contained in:
Roy Ivy III 2019-12-26 16:57:08 -06:00
parent 372ddf9222
commit d82a170351
2 changed files with 2 additions and 1 deletions

View file

@ -30,7 +30,7 @@ fn main() {
let file = File::create(&Path::new(&out_dir).join("crc_table.rs")).unwrap();
write!(
&file,
"const CRC_TABLE: [u32; {}] = {:?};",
"#[allow(clippy::unreadable_literal)]\nconst CRC_TABLE: [u32; {}] = {:?};",
CRC_TABLE_LEN, table
).unwrap();
}

View file

@ -149,5 +149,6 @@ const PREAMBLE: &'static str = r##"/*
// Please do not edit by hand. Instead, modify and
// re-run src/factor/gen_tables.rs.
#[allow(clippy::unreadable_literal)]
pub const P_INVS_U64: &[(u64, u64, u64)] = &[
"##;