File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ mod time {
5
5
6
6
#[ test]
7
7
fn conversion_roundtrip ( ) {
8
- for sample in [ entry:: Time :: default ( ) , entry:: Time { secs : 42 , nsecs : 150 } ] {
8
+ for sample in [ entry:: stat :: Time :: default ( ) , entry:: stat :: Time { secs : 42 , nsecs : 150 } ] {
9
9
let other: SystemTime = sample. into ( ) ;
10
- let new_sample: entry:: Time = other. into ( ) ;
10
+ let new_sample: entry:: stat :: Time = other. try_into ( ) . unwrap ( ) ;
11
11
assert_eq ! (
12
12
new_sample, sample,
13
13
"sample is still the same after conversion to system-time and back"
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ fn size_of_entry() {
27
27
assert_eq ! ( std:: mem:: size_of:: <gix_index:: Entry >( ) , 80 ) ;
28
28
29
29
// the reason we have our own time is half the size.
30
- assert_eq ! ( std:: mem:: size_of:: <gix_index:: entry:: Time >( ) , 8 ) ;
30
+ assert_eq ! ( std:: mem:: size_of:: <gix_index:: entry:: stat :: Time >( ) , 8 ) ;
31
31
assert_eq ! ( std:: mem:: size_of:: <filetime:: FileTime >( ) , 16 ) ;
32
32
}
33
33
You can’t perform that action at this time.
0 commit comments