File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
use std:: { fs, io} ;
2
2
3
- use gix_features:: { hash:: Sha1 , zlib:: Decompress } ;
3
+ use gix_features:: { hash:: Hasher , zlib:: Decompress } ;
4
4
use gix_hash:: ObjectId ;
5
5
6
6
use crate :: data:: input;
@@ -15,7 +15,7 @@ pub struct BytesToEntriesIter<BR> {
15
15
had_error : bool ,
16
16
version : crate :: data:: Version ,
17
17
objects_left : u32 ,
18
- hash : Option < Sha1 > ,
18
+ hash : Option < Hasher > ,
19
19
mode : input:: Mode ,
20
20
compressed : input:: EntryDataMode ,
21
21
compressed_buf : Option < Vec < u8 > > ,
@@ -303,7 +303,7 @@ where
303
303
/// A utility to automatically generate a hash while writing into an inner writer.
304
304
pub struct HashWrite < ' a , T > {
305
305
/// The hash implementation.
306
- pub hash : & ' a mut Sha1 ,
306
+ pub hash : & ' a mut Hasher ,
307
307
/// The inner writer.
308
308
pub inner : T ,
309
309
}
You can’t perform that action at this time.
0 commit comments