File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ impl<Tz: chrono::TimeZone> TryFrom<chrono::DateTime<Tz>> for NtfsTime {
5252 let seconds_since_windows_epoch = u64:: try_from ( seconds_since_windows_epoch)
5353 . map_err ( |_| crate :: error:: NtfsError :: InvalidTime ) ?;
5454 let intervals_since_windows_epoch = seconds_since_windows_epoch
55- . checked_mul ( INTERVALS_PER_SECOND as u64 )
55+ . checked_mul ( INTERVALS_PER_SECOND )
5656 . ok_or ( crate :: error:: NtfsError :: InvalidTime ) ?;
5757 let intervals_since_windows_epoch = intervals_since_windows_epoch
5858 . checked_add ( u64:: from ( dt. timestamp_subsec_nanos ( ) ) / 100 )
@@ -117,7 +117,7 @@ impl TryFrom<std::time::SystemTime> for NtfsTime {
117117 . map_err ( |_| crate :: error:: NtfsError :: InvalidTime ) ?;
118118 let intervals_since_unix_epoch = duration_since_unix_epoch
119119 . as_secs ( )
120- . checked_mul ( INTERVALS_PER_SECOND as u64 )
120+ . checked_mul ( INTERVALS_PER_SECOND )
121121 . ok_or ( crate :: error:: NtfsError :: InvalidTime ) ?;
122122 let intervals_since_unix_epoch = intervals_since_unix_epoch
123123 . checked_add ( duration_since_unix_epoch. subsec_nanos ( ) as u64 / 100 )
You can’t perform that action at this time.
0 commit comments