File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -464,6 +464,7 @@ impl Duration {
464
464
///
465
465
/// # Examples
466
466
/// ```
467
+ /// #![feature(exact_chunks)]
467
468
/// use std::time::Duration;
468
469
///
469
470
/// let dur = Duration::new(2, 700_000_000);
@@ -497,6 +498,7 @@ impl Duration {
497
498
///
498
499
/// # Examples
499
500
/// ```
501
+ /// #![feature(exact_chunks)]
500
502
/// use std::time::Duration;
501
503
///
502
504
/// let dur = Duration::new(2, 700_000_000);
@@ -531,6 +533,7 @@ impl Duration {
531
533
///
532
534
/// # Examples
533
535
/// ```
536
+ /// #![feature(exact_chunks)]
534
537
/// use std::time::Duration;
535
538
///
536
539
/// let dur1 = Duration::new(2, 700_000_000);
@@ -595,7 +598,7 @@ impl Mul<Duration> for u32 {
595
598
type Output = Duration ;
596
599
597
600
fn mul ( self , rhs : Duration ) -> Duration {
598
- rhs. checked_mul ( self ) . expect ( "overflow when multiplying scalar by duration" )
601
+ rhs * self
599
602
}
600
603
}
601
604
You can’t perform that action at this time.
0 commit comments