This commit is contained in:
Quaternions 2024-07-31 14:09:57 -07:00
parent b55ba418aa
commit ce0572485b

View File

@ -82,7 +82,7 @@ impl TimerState for Scaled{
pub struct TimerFixed<T:TimerState,P:PauseState>{ pub struct TimerFixed<T:TimerState,P:PauseState>{
state:T, state:T,
paused:P, _paused:P,
} }
pub enum Timer{ pub enum Timer{
@ -126,7 +126,7 @@ impl<T:TimerState,P:PauseState> TimerFixed<T,P>{
let new_time=self.time(time); let new_time=self.time(time);
let mut timer=TimerFixed{ let mut timer=TimerFixed{
state:self.state, state:self.state,
paused:Paused, _paused:Paused,
}; };
timer.set_time(time,new_time); timer.set_time(time,new_time);
Ok(timer) Ok(timer)
@ -139,7 +139,7 @@ impl<T:TimerState,P:PauseState> TimerFixed<T,P>{
let new_time=self.time(time); let new_time=self.time(time);
let mut timer=TimerFixed{ let mut timer=TimerFixed{
state:self.state, state:self.state,
paused:Unpaused, _paused:Unpaused,
}; };
timer.set_time(time,new_time); timer.set_time(time,new_time);
Ok(timer) Ok(timer)