@@ -675,24 +675,24 @@ mod tests {
675675 "MD5" => {
676676 let expected_hash = format ! ( "{:x}" , md5:: compute( content) ) ;
677677 let hash = hasher. compute ( ) . unwrap ( ) ;
678- assert_eq ! ( hash, expected_hash, "Hash for {algorithm } is incorrect" ) ;
678+ assert_eq ! ( hash, expected_hash, "Hash for {} is incorrect" , algorithm ) ;
679679 }
680680 "SHA-256" => {
681681 let expected_hash = format ! ( "{:x}" , sha2:: Sha256 :: digest( content) ) ;
682682 let hash = hasher. compute ( ) . unwrap ( ) ;
683- assert_eq ! ( hash, expected_hash, "Hash for {algorithm } is incorrect" ) ;
683+ assert_eq ! ( hash, expected_hash, "Hash for {} is incorrect" , algorithm ) ;
684684 }
685685 "SHA-512" => {
686686 let expected_hash = format ! ( "{:x}" , sha2:: Sha512 :: digest( content) ) ;
687687 let hash = hasher. compute ( ) . unwrap ( ) ;
688- assert_eq ! ( hash, expected_hash, "Hash for {algorithm } is incorrect" ) ;
688+ assert_eq ! ( hash, expected_hash, "Hash for {} is incorrect" , algorithm ) ;
689689 }
690690 "SHA-1" => {
691691 let expected_hash = format ! ( "{:x}" , sha1:: Sha1 :: digest( content) ) ;
692692 let hash = hasher. compute ( ) . unwrap ( ) ;
693- assert_eq ! ( hash, expected_hash, "Hash for {algorithm } is incorrect" ) ;
693+ assert_eq ! ( hash, expected_hash, "Hash for {} is incorrect" , algorithm ) ;
694694 }
695- _ => panic ! ( "Unsupported algorithm: {algorithm}" ) ,
695+ _ => panic ! ( "Unsupported algorithm: {}" , algorithm ) ,
696696 }
697697 }
698698 }
0 commit comments