File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ js = ["private_getrandom", "private_getrandom/js"]
65
65
rng = [" private_getrandom" ]
66
66
fast-rng = [" rng" , " private_rand" ]
67
67
68
- sha1 = [" private_sha1 " ]
68
+ sha1 = [" private_sha1_smol " ]
69
69
md5 = [" private_md-5" ]
70
70
71
71
# Public: Used in trait impls on `Uuid`
@@ -121,11 +121,11 @@ version = "0.10"
121
121
# Private
122
122
# Don't depend on this optional feature directly: it may change at any time
123
123
# Use the `sha1` feature instead
124
- [dependencies .private_sha1 ]
125
- package = " sha1 "
124
+ [dependencies .private_sha1_smol ]
125
+ package = " sha1_smol "
126
126
default-features = false
127
127
optional = true
128
- version = " 0.10 "
128
+ version = " 1 "
129
129
130
130
# Public: Re-exported
131
131
# Don't depend on this optional feature directly: it may change at any time
Original file line number Diff line number Diff line change 1
1
#[ cfg( feature = "v5" ) ]
2
2
pub ( crate ) fn hash ( ns : & [ u8 ] , src : & [ u8 ] ) -> [ u8 ; 16 ] {
3
- use private_sha1 :: { Sha1 , Digest } ;
3
+ use private_sha1_smol :: Sha1 ;
4
4
5
5
let mut hasher = Sha1 :: new ( ) ;
6
6
7
7
hasher. update ( ns) ;
8
8
hasher. update ( src) ;
9
9
10
10
let mut bytes = [ 0 ; 16 ] ;
11
- bytes. copy_from_slice ( & hasher. finalize ( ) [ ..16 ] ) ;
11
+ bytes. copy_from_slice ( & hasher. digest ( ) . bytes ( ) [ ..16 ] ) ;
12
12
13
13
bytes
14
14
}
You can’t perform that action at this time.
0 commit comments