We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
gix-features
1 parent cdf2a63 commit ee80b2bCopy full SHA for ee80b2b
gix-pack/src/data/input/bytes_to_entries.rs
@@ -1,6 +1,6 @@
1
use std::{fs, io};
2
3
-use gix_features::{hash::Sha1, zlib::Decompress};
+use gix_features::{hash::Hasher, zlib::Decompress};
4
use gix_hash::ObjectId;
5
6
use crate::data::input;
@@ -15,7 +15,7 @@ pub struct BytesToEntriesIter<BR> {
15
had_error: bool,
16
version: crate::data::Version,
17
objects_left: u32,
18
- hash: Option<Sha1>,
+ hash: Option<Hasher>,
19
mode: input::Mode,
20
compressed: input::EntryDataMode,
21
compressed_buf: Option<Vec<u8>>,
@@ -303,7 +303,7 @@ where
303
/// A utility to automatically generate a hash while writing into an inner writer.
304
pub struct HashWrite<'a, T> {
305
/// The hash implementation.
306
- pub hash: &'a mut Sha1,
+ pub hash: &'a mut Hasher,
307
/// The inner writer.
308
pub inner: T,
309
}
0 commit comments