From 07c15ea64552bdf78bcbb5224331c03cec7e37a2 Mon Sep 17 00:00:00 2001 From: Artyom Pavlov Date: Wed, 12 Sep 2018 11:56:39 +0300 Subject: [PATCH] more explicit impl --- src/libcore/time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/time.rs b/src/libcore/time.rs index db5d94808781..e85ac33a4196 100644 --- a/src/libcore/time.rs +++ b/src/libcore/time.rs @@ -589,7 +589,7 @@ impl Mul for u32 { type Output = Duration; fn mul(self, rhs: Duration) -> Duration { - rhs * self + rhs.checked_mul(self).expect("overflow when multiplying scalar by duration") } }