Skip to content

Commit

Permalink
chore(clippy): Ignore lints about code-genned code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Page committed Oct 29, 2019
1 parent dc327e0 commit ed004e7
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions dict/codespell/codegen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
1 change: 1 addition & 0 deletions dict/codespell/src/dict_codegen.rs
Original file line number Diff line number Diff line change
@@ -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]> =
Expand Down
1 change: 1 addition & 0 deletions dict/misspell/codegen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
1 change: 1 addition & 0 deletions dict/misspell/src/dict_codegen.rs
Original file line number Diff line number Diff line change
@@ -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]> =
Expand Down
1 change: 1 addition & 0 deletions dict/typos/codegen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
1 change: 1 addition & 0 deletions dict/typos/src/dict_codegen.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
1 change: 1 addition & 0 deletions dict/wikipedia/codegen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
1 change: 1 addition & 0 deletions dict/wikipedia/src/dict_codegen.rs
Original file line number Diff line number Diff line change
@@ -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]> =
Expand Down

0 comments on commit ed004e7

Please sign in to comment.