Skip to content

Commit 720ea0e

Browse files
committed
style(Timer): Move Timer struct declaration, Combine identical
Timer impl blocks
1 parent 20879f7 commit 720ea0e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/timer.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ impl<Type, Clock: crate::Clock, Dur: Duration> Timer<Type, Disarmed, Clock, Dur>
8181
}
8282
}
8383
}
84-
8584
impl<Type, Clock: crate::Clock, Dur: Duration> Timer<Type, Armed, Clock, Dur> {
8685
/// Start the _armed_ timer from this instant
8786
pub fn start(self) -> Timer<Type, Running, Clock, Dur>
@@ -140,9 +139,7 @@ impl<Clock: crate::Clock, Dur: Duration> Timer<OneShot, Running, Clock, Dur> {
140139
// since the timer is running, _is_expired() will return a value
141140
while !self._is_expired() {}
142141
}
143-
}
144142

145-
impl<Clock: crate::Clock, Dur: Duration> Timer<OneShot, Running, Clock, Dur> {
146143
/// Check whether the timer has expired
147144
///
148145
/// The timer is not restarted

0 commit comments

Comments
 (0)