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 11use std:: { fs, io} ;
22
3- use gix_features:: { hash:: Sha1 , zlib:: Decompress } ;
3+ use gix_features:: { hash:: Hasher , zlib:: Decompress } ;
44use gix_hash:: ObjectId ;
55
66use 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.
304304pub 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}
You can’t perform that action at this time.
0 commit comments