From ed004e7df93a528fca392fba999962c6f8555607 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 29 Oct 2019 07:53:32 -0600 Subject: [PATCH] chore(clippy): Ignore lints about code-genned code --- dict/codespell/codegen/src/main.rs | 1 + dict/codespell/src/dict_codegen.rs | 1 + dict/misspell/codegen/src/main.rs | 1 + dict/misspell/src/dict_codegen.rs | 1 + dict/typos/codegen/src/main.rs | 1 + dict/typos/src/dict_codegen.rs | 1 + dict/wikipedia/codegen/src/main.rs | 1 + dict/wikipedia/src/dict_codegen.rs | 1 + 8 files changed, 8 insertions(+) diff --git a/dict/codespell/codegen/src/main.rs b/dict/codespell/codegen/src/main.rs index 2f5a2fa..877a42e 100644 --- a/dict/codespell/codegen/src/main.rs +++ b/dict/codespell/codegen/src/main.rs @@ -30,6 +30,7 @@ fn generate(file: &mut W) { env!("CARGO_PKG_NAME") ) .unwrap(); + writeln!(file, "#![allow(clippy::unreadable_literal)]",).unwrap(); writeln!(file).unwrap(); writeln!(file, "use unicase::UniCase;").unwrap(); diff --git a/dict/codespell/src/dict_codegen.rs b/dict/codespell/src/dict_codegen.rs index 5996d7b..c6a75bd 100644 --- a/dict/codespell/src/dict_codegen.rs +++ b/dict/codespell/src/dict_codegen.rs @@ -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, &[&'static str]> = diff --git a/dict/misspell/codegen/src/main.rs b/dict/misspell/codegen/src/main.rs index 20a6788..a9b9222 100644 --- a/dict/misspell/codegen/src/main.rs +++ b/dict/misspell/codegen/src/main.rs @@ -59,6 +59,7 @@ fn generate(file: &mut W) { env!("CARGO_PKG_NAME") ) .unwrap(); + writeln!(file, "#![allow(clippy::unreadable_literal)]",).unwrap(); writeln!(file).unwrap(); writeln!(file, "use unicase::UniCase;").unwrap(); diff --git a/dict/misspell/src/dict_codegen.rs b/dict/misspell/src/dict_codegen.rs index cefcfb2..3d5b504 100644 --- a/dict/misspell/src/dict_codegen.rs +++ b/dict/misspell/src/dict_codegen.rs @@ -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, &[&'static str]> = diff --git a/dict/typos/codegen/src/main.rs b/dict/typos/codegen/src/main.rs index e359f6e..b0507dd 100644 --- a/dict/typos/codegen/src/main.rs +++ b/dict/typos/codegen/src/main.rs @@ -9,6 +9,7 @@ fn generate(file: &mut W) { env!("CARGO_PKG_NAME") ) .unwrap(); + writeln!(file, "#![allow(clippy::unreadable_literal)]",).unwrap(); writeln!(file).unwrap(); writeln!(file, "use unicase::UniCase;").unwrap(); diff --git a/dict/typos/src/dict_codegen.rs b/dict/typos/src/dict_codegen.rs index 24f0062..517c634 100644 --- a/dict/typos/src/dict_codegen.rs +++ b/dict/typos/src/dict_codegen.rs @@ -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, &'static str> = ::phf::Map { diff --git a/dict/wikipedia/codegen/src/main.rs b/dict/wikipedia/codegen/src/main.rs index 2f5a2fa..877a42e 100644 --- a/dict/wikipedia/codegen/src/main.rs +++ b/dict/wikipedia/codegen/src/main.rs @@ -30,6 +30,7 @@ fn generate(file: &mut W) { env!("CARGO_PKG_NAME") ) .unwrap(); + writeln!(file, "#![allow(clippy::unreadable_literal)]",).unwrap(); writeln!(file).unwrap(); writeln!(file, "use unicase::UniCase;").unwrap(); diff --git a/dict/wikipedia/src/dict_codegen.rs b/dict/wikipedia/src/dict_codegen.rs index 810cd70..8a12d13 100644 --- a/dict/wikipedia/src/dict_codegen.rs +++ b/dict/wikipedia/src/dict_codegen.rs @@ -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, &[&'static str]> =