File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ impl File {
78
78
let num_bytes_to_hash = meta. len ( ) - object_hash. len_in_bytes ( ) as u64 ;
79
79
let actual_hash = gix_features:: hash:: bytes (
80
80
& mut file,
81
- num_bytes_to_hash as usize ,
81
+ num_bytes_to_hash,
82
82
object_hash,
83
83
& mut gix_features:: progress:: Discard ,
84
84
& Default :: default ( ) ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ impl File {
27
27
let should_interrupt = AtomicBool :: new ( false ) ;
28
28
let actual = gix_features:: hash:: bytes_of_file (
29
29
& self . path ,
30
- num_bytes_to_hash as usize ,
30
+ num_bytes_to_hash,
31
31
checksum. kind ( ) ,
32
32
& mut gix_features:: progress:: Discard ,
33
33
& should_interrupt,
Original file line number Diff line number Diff line change 97
97
let interrupt_never = std:: sync:: atomic:: AtomicBool :: new ( false ) ;
98
98
let digest = hash:: bytes (
99
99
& mut self . output ,
100
- num_bytes_written as usize ,
100
+ num_bytes_written,
101
101
self . object_hash ,
102
102
& mut gix_features:: progress:: Discard ,
103
103
& interrupt_never,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ pub fn checksum_on_disk_or_mmap(
39
39
let data_len_without_trailer = data. len ( ) - object_hash. len_in_bytes ( ) ;
40
40
let actual = match gix_features:: hash:: bytes_of_file (
41
41
data_path,
42
- data_len_without_trailer,
42
+ data_len_without_trailer as u64 ,
43
43
object_hash,
44
44
progress,
45
45
should_interrupt,
You can’t perform that action at this time.
0 commit comments