Skip to content

Commit

Permalink
cargo clippy check
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi committed Sep 22, 2023
1 parent 3b4d18e commit 0087ff0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
Expand All @@ -447,13 +443,15 @@ 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(),
""
),
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(),
Expand Down

0 comments on commit 0087ff0

Please sign in to comment.