silence all warnings

This commit is contained in:
Quaternions 2024-07-31 17:50:44 -07:00
parent 63cc55d20c
commit 42b1ae98f7

@ -38,9 +38,9 @@ pub struct Scaled{
offset:Time, offset:Time,
} }
impl Scaled{ impl Scaled{
const fn identity()->Self{ // const fn identity()->Self{
Self{scale:Ratio64::ONE,offset:Time::ZERO} // Self{scale:Ratio64::ONE,offset:Time::ZERO}
} // }
const fn with_scale(scale:Ratio64)->Self{ const fn with_scale(scale:Ratio64)->Self{
Self{scale,offset:Time::ZERO} Self{scale,offset:Time::ZERO}
} }
@ -121,6 +121,12 @@ impl<P:PauseState> TimerFixed<Scaled,P>{
pub fn unit(time:Time,new_time:Time)->Self{ pub fn unit(time:Time,new_time:Time)->Self{
Self::new(time,new_time,Ratio64::ONE) Self::new(time,new_time,Ratio64::ONE)
} }
pub const fn get_scale(&self)->Ratio64{
self.state.get_scale()
}
pub fn set_scale(&mut self,time:Time,new_scale:Ratio64){
self.state.set_scale(time,new_scale)
}
} }
//pause and unpause is generic across TimerState //pause and unpause is generic across TimerState