Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi authored Oct 7, 2023
1 parent e6b1626 commit 1a36c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,15 +443,15 @@ impl Shadow {
let define = match val.t {
ConstType::OptStr => format!(
"#[allow(dead_code)]\n\
#[allow(clippy::needless_raw_string_hashes)]\n\
#[allow(clippy::all)]\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\
#[allow(clippy::all)]\n\
pub const {} :{} = r#\"{}\"#;",
shadow_const.to_ascii_uppercase(),
ConstType::Str.to_string(),
Expand Down

0 comments on commit 1a36c64

Please sign in to comment.