@@ -820,7 +820,7 @@ mod tests {
820
820
821
821
let mut sh = box Sha512 :: new( ) ;
822
822
823
- test_hash( sh, tests. as_slice( ) ) ;
823
+ test_hash( & mut * sh, tests. as_slice( ) ) ;
824
824
}
825
825
826
826
#[ test]
@@ -845,7 +845,7 @@ mod tests {
845
845
846
846
let mut sh = box Sha384 :: new( ) ;
847
847
848
- test_hash( sh, tests. as_slice( ) ) ;
848
+ test_hash( & mut * sh, tests. as_slice( ) ) ;
849
849
}
850
850
851
851
#[ test]
@@ -870,7 +870,7 @@ mod tests {
870
870
871
871
let mut sh = box Sha512Trunc256 :: new( ) ;
872
872
873
- test_hash( sh, tests. as_slice( ) ) ;
873
+ test_hash( & mut * sh, tests. as_slice( ) ) ;
874
874
}
875
875
876
876
#[ test]
@@ -895,7 +895,7 @@ mod tests {
895
895
896
896
let mut sh = box Sha512Trunc224 :: new( ) ;
897
897
898
- test_hash( sh, tests. as_slice( ) ) ;
898
+ test_hash( & mut * sh, tests. as_slice( ) ) ;
899
899
}
900
900
901
901
#[ test]
@@ -920,7 +920,7 @@ mod tests {
920
920
921
921
let mut sh = box Sha256 :: new( ) ;
922
922
923
- test_hash( sh, tests. as_slice( ) ) ;
923
+ test_hash( & mut * sh, tests. as_slice( ) ) ;
924
924
}
925
925
926
926
#[ test]
@@ -945,7 +945,7 @@ mod tests {
945
945
946
946
let mut sh = box Sha224 :: new( ) ;
947
947
948
- test_hash( sh, tests. as_slice( ) ) ;
948
+ test_hash( & mut * sh, tests. as_slice( ) ) ;
949
949
}
950
950
951
951
#[ test]
0 commit comments