more explicit impl

This commit is contained in:
Artyom Pavlov 2018-09-12 11:56:39 +03:00 committed by GitHub
parent 206ca68ff3
commit 07c15ea645
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -589,7 +589,7 @@ impl Mul<Duration> for u32 {
type Output = Duration;
fn mul(self, rhs: Duration) -> Duration {
rhs * self
rhs.checked_mul(self).expect("overflow when multiplying scalar by duration")
}
}