Skip to content

Commit badcd81

Browse files
committed
Clippy fixes
1 parent c11e1a5 commit badcd81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

governor/src/clock/quanta.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ mod test {
136136
fn quanta_upkeep_impls_coverage() {
137137
let one_ns = Nanos::new(1);
138138
let c = QuantaUpkeepClock::from_interval(Duration::from_secs(1)).unwrap();
139-
let n = c.clone();
139+
let n = c;
140140
let now = n.now();
141141
assert_ne!(now + one_ns, now);
142142
assert_eq!(one_ns, Reference::duration_since(&(now + one_ns), now));

governor/src/clock/with_std.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ mod test {
111111

112112
let c = MonotonicClock::default();
113113
format!("{:?}", c);
114-
let n = c.clone();
114+
let n = c;
115115
let now = n.now();
116116
let ns_dur = Duration::from(one_ns);
117117
assert_ne!(now + ns_dur, now, "{:?} + {:?}", ns_dur, now);

0 commit comments

Comments
 (0)