Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi committed Sep 13, 2023
1 parent ea530ce commit 9ccfab7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 0 additions & 3 deletions example_shadow/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#![allow(clippy::needless_raw_strings)]
#![allow(clippy::needless_raw_string_hashes)]

use clap::Command;

use shadow_rs::{shadow, Format};
Expand Down
3 changes: 0 additions & 3 deletions example_shadow_hook/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#![allow(clippy::needless_raw_strings)]
#![allow(clippy::needless_raw_string_hashes)]

use shadow_rs::shadow;

shadow!(build);
Expand Down
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,12 @@ impl Shadow {
let desc = format!(
r#"// Code automatically generated by `shadow-rs` (https://github.com/baoyachi/shadow-rs), do not edit.
// Author: https://www.github.com/baoyachi
// Generation time: {}"#,
// Generation time: {}
#[allow(clippy::needless_raw_strings)]
#[allow(clippy::needless_raw_string_hashes)]
"#,
DateTime::now().human_format()
);
writeln!(&self.f, "{desc}\n\n")?;
Expand Down

0 comments on commit 9ccfab7

Please sign in to comment.