diff --git a/src/timer.rs b/src/timer.rs index fd34dac..0b8ea98 100644 --- a/src/timer.rs +++ b/src/timer.rs @@ -1,7 +1,7 @@ use crate::integer::{Time,Ratio64}; -pub struct Paused{} -pub struct Unpaused{} +pub struct Paused; +pub struct Unpaused; pub trait PauseState{ const IS_PAUSED:bool; @@ -126,7 +126,7 @@ impl TimerFixed{ let new_time=self.time(time); let mut timer=TimerFixed{ state:self.state, - paused:Paused{}, + paused:Paused, }; timer.set_time(time,new_time); Ok(timer) @@ -139,7 +139,7 @@ impl TimerFixed{ let new_time=self.time(time); let mut timer=TimerFixed{ state:self.state, - paused:Unpaused{}, + paused:Unpaused, }; timer.set_time(time,new_time); Ok(timer)