chore(clippy): Ignore lints about code-genned code

This commit is contained in:
Ed Page 2019-10-29 07:53:32 -06:00
parent dc327e0d51
commit ed004e7df9
8 changed files with 8 additions and 0 deletions

View file

@ -30,6 +30,7 @@ fn generate<W: std::io::Write>(file: &mut W) {
env!("CARGO_PKG_NAME")
)
.unwrap();
writeln!(file, "#![allow(clippy::unreadable_literal)]",).unwrap();
writeln!(file).unwrap();
writeln!(file, "use unicase::UniCase;").unwrap();

View file

@ -1,4 +1,5 @@
// This file is code-genned by codespell-codegen
#![allow(clippy::unreadable_literal)]
use unicase::UniCase;
pub static WORD_DICTIONARY: phf::Map<unicase::UniCase<&'static str>, &[&'static str]> =

View file

@ -59,6 +59,7 @@ fn generate<W: std::io::Write>(file: &mut W) {
env!("CARGO_PKG_NAME")
)
.unwrap();
writeln!(file, "#![allow(clippy::unreadable_literal)]",).unwrap();
writeln!(file).unwrap();
writeln!(file, "use unicase::UniCase;").unwrap();

View file

@ -1,4 +1,5 @@
// This file is code-genned by misspell-codegen
#![allow(clippy::unreadable_literal)]
use unicase::UniCase;
pub static MAIN_DICTIONARY: phf::Map<unicase::UniCase<&'static str>, &[&'static str]> =

View file

@ -9,6 +9,7 @@ fn generate<W: std::io::Write>(file: &mut W) {
env!("CARGO_PKG_NAME")
)
.unwrap();
writeln!(file, "#![allow(clippy::unreadable_literal)]",).unwrap();
writeln!(file).unwrap();
writeln!(file, "use unicase::UniCase;").unwrap();

View file

@ -1,4 +1,5 @@
// This file is code-genned by typos-codegen
#![allow(clippy::unreadable_literal)]
use unicase::UniCase;
pub static WORD_DICTIONARY: phf::Map<unicase::UniCase<&'static str>, &'static str> = ::phf::Map {

View file

@ -30,6 +30,7 @@ fn generate<W: std::io::Write>(file: &mut W) {
env!("CARGO_PKG_NAME")
)
.unwrap();
writeln!(file, "#![allow(clippy::unreadable_literal)]",).unwrap();
writeln!(file).unwrap();
writeln!(file, "use unicase::UniCase;").unwrap();

View file

@ -1,4 +1,5 @@
// This file is code-genned by wikipedia-codegen
#![allow(clippy::unreadable_literal)]
use unicase::UniCase;
pub static WORD_DICTIONARY: phf::Map<unicase::UniCase<&'static str>, &[&'static str]> =