mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 07:12:44 +00:00
refactor/polish ~ fix cargo clippy
complaints (allow unreadable_literal {for dynamic code})
This commit is contained in:
parent
372ddf9222
commit
d82a170351
2 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,7 @@ fn main() {
|
||||||
let file = File::create(&Path::new(&out_dir).join("crc_table.rs")).unwrap();
|
let file = File::create(&Path::new(&out_dir).join("crc_table.rs")).unwrap();
|
||||||
write!(
|
write!(
|
||||||
&file,
|
&file,
|
||||||
"const CRC_TABLE: [u32; {}] = {:?};",
|
"#[allow(clippy::unreadable_literal)]\nconst CRC_TABLE: [u32; {}] = {:?};",
|
||||||
CRC_TABLE_LEN, table
|
CRC_TABLE_LEN, table
|
||||||
).unwrap();
|
).unwrap();
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,5 +149,6 @@ const PREAMBLE: &'static str = r##"/*
|
||||||
// Please do not edit by hand. Instead, modify and
|
// Please do not edit by hand. Instead, modify and
|
||||||
// re-run src/factor/gen_tables.rs.
|
// re-run src/factor/gen_tables.rs.
|
||||||
|
|
||||||
|
#[allow(clippy::unreadable_literal)]
|
||||||
pub const P_INVS_U64: &[(u64, u64, u64)] = &[
|
pub const P_INVS_U64: &[(u64, u64, u64)] = &[
|
||||||
"##;
|
"##;
|
||||||
|
|
Loading…
Reference in a new issue