Skip to content

Commit

Permalink
Merge pull request #142 from baoyachi/clippy_check
Browse files Browse the repository at this point in the history
cargo clippy check
fix #141
  • Loading branch information
baoyachi authored Sep 24, 2023
2 parents 3b4d18e + 0087ff0 commit a75cf95
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 a75cf95

Please sign in to comment.