@@ -14,7 +14,7 @@ fn creation() {
1414#[ test]
1515#[ should_panic]
1616fn new_overflow ( ) {
17- let _ = Duration :: new ( :: core :: u64:: MAX , 1_000_000_000 ) ;
17+ let _ = Duration :: new ( u64:: MAX , 1_000_000_000 ) ;
1818}
1919
2020#[ test]
@@ -86,7 +86,7 @@ fn checked_add() {
8686 Duration :: new( 0 , 500_000_000 ) . checked_add( Duration :: new( 0 , 500_000_001 ) ) ,
8787 Some ( Duration :: new( 1 , 1 ) )
8888 ) ;
89- assert_eq ! ( Duration :: new( 1 , 0 ) . checked_add( Duration :: new( :: core :: u64 :: MAX , 0 ) ) , None ) ;
89+ assert_eq ! ( Duration :: new( 1 , 0 ) . checked_add( Duration :: new( u64 :: MAX , 0 ) ) , None ) ;
9090}
9191
9292#[ test]
@@ -133,7 +133,7 @@ fn checked_mul() {
133133 assert_eq ! ( Duration :: new( 1 , 1 ) . checked_mul( 3 ) , Some ( Duration :: new( 3 , 3 ) ) ) ;
134134 assert_eq ! ( Duration :: new( 0 , 500_000_001 ) . checked_mul( 4 ) , Some ( Duration :: new( 2 , 4 ) ) ) ;
135135 assert_eq ! ( Duration :: new( 0 , 500_000_001 ) . checked_mul( 4000 ) , Some ( Duration :: new( 2000 , 4000 ) ) ) ;
136- assert_eq ! ( Duration :: new( :: core :: u64 :: MAX - 1 , 0 ) . checked_mul( 2 ) , None ) ;
136+ assert_eq ! ( Duration :: new( u64 :: MAX - 1 , 0 ) . checked_mul( 2 ) , None ) ;
137137}
138138
139139#[ test]
0 commit comments