Auto-deduce float literal type
This commit is contained in:
parent
33f68509f8
commit
8a3b6f90b7
|
@ -31,7 +31,7 @@ trait InSeconds {
|
|||
|
||||
impl InSeconds for Duration {
|
||||
fn in_seconds(&self) -> f64 {
|
||||
self.as_secs() as f64 + (self.subsec_nanos() as f64) * 1e-9f64
|
||||
self.as_secs() as f64 + (self.subsec_nanos() as f64) * 1e-9
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user