Skip to content

Commit

Permalink
Fix clippy on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kazk committed Jun 23, 2022
1 parent 4319cad commit 38c8537
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ impl Generator {
self.with_time(&SystemTime::now())
}

#[cfg_attr(target_os = "windows", allow(clippy::trivially_copy_pass_by_ref))]
fn with_time(&self, time: &SystemTime) -> Id {
// Panic if the time is before the epoch.
let unix_ts = time
Expand Down

0 comments on commit 38c8537

Please sign in to comment.