@@ -14,7 +14,7 @@ fn creation() {
14
14
#[ test]
15
15
#[ should_panic]
16
16
fn new_overflow ( ) {
17
- let _ = Duration :: new ( :: core :: u64:: MAX , 1_000_000_000 ) ;
17
+ let _ = Duration :: new ( u64:: MAX , 1_000_000_000 ) ;
18
18
}
19
19
20
20
#[ test]
@@ -86,7 +86,7 @@ fn checked_add() {
86
86
Duration :: new( 0 , 500_000_000 ) . checked_add( Duration :: new( 0 , 500_000_001 ) ) ,
87
87
Some ( Duration :: new( 1 , 1 ) )
88
88
) ;
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 ) ;
90
90
}
91
91
92
92
#[ test]
@@ -133,7 +133,7 @@ fn checked_mul() {
133
133
assert_eq ! ( Duration :: new( 1 , 1 ) . checked_mul( 3 ) , Some ( Duration :: new( 3 , 3 ) ) ) ;
134
134
assert_eq ! ( Duration :: new( 0 , 500_000_001 ) . checked_mul( 4 ) , Some ( Duration :: new( 2 , 4 ) ) ) ;
135
135
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 ) ;
137
137
}
138
138
139
139
#[ test]
0 commit comments