Skip to content

Commit ee80b2b

Browse files
committed
adapt to changes in gix-features
1 parent cdf2a63 commit ee80b2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{fs, io};
22

3-
use gix_features::{hash::Sha1, zlib::Decompress};
3+
use gix_features::{hash::Hasher, zlib::Decompress};
44
use gix_hash::ObjectId;
55

66
use crate::data::input;
@@ -15,7 +15,7 @@ pub struct BytesToEntriesIter<BR> {
1515
had_error: bool,
1616
version: crate::data::Version,
1717
objects_left: u32,
18-
hash: Option<Sha1>,
18+
hash: Option<Hasher>,
1919
mode: input::Mode,
2020
compressed: input::EntryDataMode,
2121
compressed_buf: Option<Vec<u8>>,
@@ -303,7 +303,7 @@ where
303303
/// A utility to automatically generate a hash while writing into an inner writer.
304304
pub struct HashWrite<'a, T> {
305305
/// The hash implementation.
306-
pub hash: &'a mut Sha1,
306+
pub hash: &'a mut Hasher,
307307
/// The inner writer.
308308
pub inner: T,
309309
}

0 commit comments

Comments
 (0)