Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfrank63 committed Oct 9, 2023
1 parent 4193a82 commit 0b05282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion governor/src/clock/quanta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ mod test {
fn quanta_upkeep_impls_coverage() {
let one_ns = Nanos::new(1);
let c = QuantaUpkeepClock::from_interval(Duration::from_secs(1)).unwrap();
let n = c.clone();
let n = c;
let now = n.now();
assert_ne!(now + one_ns, now);
assert_eq!(one_ns, Reference::duration_since(&(now + one_ns), now));
Expand Down
2 changes: 1 addition & 1 deletion governor/src/clock/with_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ mod test {

let c = MonotonicClock::default();
format!("{:?}", c);
let n = c.clone();
let n = c;
let now = n.now();
let ns_dur = Duration::from(one_ns);
assert_ne!(now + ns_dur, now, "{:?} + {:?}", ns_dur, now);
Expand Down

0 comments on commit 0b05282

Please sign in to comment.