Skip to content

Commit 9e7c3e1

Browse files
committed
adapt to gix-features
1 parent 4c03fdb commit 9e7c3e1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

gix-index/src/file/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl File {
7878
let num_bytes_to_hash = meta.len() - object_hash.len_in_bytes() as u64;
7979
let actual_hash = gix_features::hash::bytes(
8080
&mut file,
81-
num_bytes_to_hash as usize,
81+
num_bytes_to_hash,
8282
object_hash,
8383
&mut gix_features::progress::Discard,
8484
&Default::default(),

gix-index/src/file/verify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl File {
2727
let should_interrupt = AtomicBool::new(false);
2828
let actual = gix_features::hash::bytes_of_file(
2929
&self.path,
30-
num_bytes_to_hash as usize,
30+
num_bytes_to_hash,
3131
checksum.kind(),
3232
&mut gix_features::progress::Discard,
3333
&should_interrupt,

gix-pack/src/data/input/entries_to_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ where
9797
let interrupt_never = std::sync::atomic::AtomicBool::new(false);
9898
let digest = hash::bytes(
9999
&mut self.output,
100-
num_bytes_written as usize,
100+
num_bytes_written,
101101
self.object_hash,
102102
&mut gix_features::progress::Discard,
103103
&interrupt_never,

gix-pack/src/verify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub fn checksum_on_disk_or_mmap(
3939
let data_len_without_trailer = data.len() - object_hash.len_in_bytes();
4040
let actual = match gix_features::hash::bytes_of_file(
4141
data_path,
42-
data_len_without_trailer,
42+
data_len_without_trailer as u64,
4343
object_hash,
4444
progress,
4545
should_interrupt,

0 commit comments

Comments
 (0)