more explicit impl
This commit is contained in:
parent
206ca68ff3
commit
07c15ea645
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue