diff --git a/governor/src/clock/quanta.rs b/governor/src/clock/quanta.rs index c4d38189..53615831 100644 --- a/governor/src/clock/quanta.rs +++ b/governor/src/clock/quanta.rs @@ -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)); diff --git a/governor/src/clock/with_std.rs b/governor/src/clock/with_std.rs index a00c95af..f1abbf53 100644 --- a/governor/src/clock/with_std.rs +++ b/governor/src/clock/with_std.rs @@ -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);