Auto-deduce float literal type

This commit is contained in:
Roman Zeyde 2018-05-18 12:12:30 +03:00
parent 33f68509f8
commit 8a3b6f90b7
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -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
}
}