diff --git a/src/lib.rs b/src/lib.rs index 2708a42..b17756f 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -430,10 +430,6 @@ impl Shadow { r#"// Code automatically generated by `shadow-rs` (https://github.com/baoyachi/shadow-rs), do not edit. // Author: https://www.github.com/baoyachi // Generation time: {} - -#[allow(clippy::needless_raw_strings)] -#[allow(clippy::needless_raw_string_hashes)] - "#, DateTime::now().human_format() ); @@ -447,6 +443,7 @@ impl Shadow { let define = match val.t { ConstType::OptStr => format!( "#[allow(dead_code)]\n\ + #[allow(clippy::needless_raw_string_hashes)]\n\ pub const {} :{} = r#\"{}\"#;", shadow_const.to_ascii_uppercase(), ConstType::Str.to_string(), @@ -454,6 +451,7 @@ impl Shadow { ), ConstType::Str => format!( "#[allow(dead_code)]\n\ + #[allow(clippy::needless_raw_string_hashes)]\n\ pub const {} :{} = r#\"{}\"#;", shadow_const.to_ascii_uppercase(), ConstType::Str.to_string(),