pull/146/head
Chip Senkbeil 2 years ago
parent 3eace0c28e
commit c9fb1362b4
No known key found for this signature in database
GPG Key ID: 35EF1F8EC72A4131

@ -75,9 +75,8 @@ impl ShutdownTimer {
/// Stops the timer, only applying if the timer is `lonely`
pub fn stop(&self) {
match self.shutdown {
Shutdown::Lonely(_) => self.timer.stop(),
_ => (),
if let Shutdown::Lonely(_) = self.shutdown {
self.timer.stop();
}
}

Loading…
Cancel
Save