diff --git a/hashes/src/hash160.rs b/hashes/src/hash160.rs index 78039cde5..3e96c8c1e 100644 --- a/hashes/src/hash160.rs +++ b/hashes/src/hash160.rs @@ -88,7 +88,7 @@ mod tests { // Hash through high-level API, check hex encoding/decoding let hash = hash160::Hash::hash(&test.input[..]); assert_eq!(hash, test.output_str.parse::().expect("parse hex")); - assert_eq!(&hash[..], &test.output[..]); + assert_eq!(&hash[..], &test.output); assert_eq!(&hash.to_string(), &test.output_str); // Hash through engine, checking that we can input byte by byte diff --git a/hashes/src/ripemd160.rs b/hashes/src/ripemd160.rs index 2b2e10bb7..70e711d19 100644 --- a/hashes/src/ripemd160.rs +++ b/hashes/src/ripemd160.rs @@ -477,7 +477,7 @@ mod tests { // Hash through high-level API, check hex encoding/decoding let hash = ripemd160::Hash::hash(test.input.as_bytes()); assert_eq!(hash, test.output_str.parse::().expect("parse hex")); - assert_eq!(&hash[..], &test.output[..]); + assert_eq!(&hash[..], &test.output); assert_eq!(&hash.to_string(), &test.output_str); assert_eq!(ripemd160::Hash::from_bytes_ref(&test.output), &hash); assert_eq!(ripemd160::Hash::from_bytes_mut(&mut test.output), &hash); diff --git a/hashes/src/sha1.rs b/hashes/src/sha1.rs index 5cc358ff5..66db27774 100644 --- a/hashes/src/sha1.rs +++ b/hashes/src/sha1.rs @@ -183,7 +183,7 @@ mod tests { // Hash through high-level API, check hex encoding/decoding let hash = sha1::Hash::hash(test.input.as_bytes()); assert_eq!(hash, test.output_str.parse::().expect("parse hex")); - assert_eq!(&hash[..], &test.output[..]); + assert_eq!(&hash[..], &test.output); assert_eq!(&hash.to_string(), &test.output_str); // Hash through engine, checking that we can input byte by byte diff --git a/hashes/src/sha256.rs b/hashes/src/sha256.rs index 1c566ff76..8e78e5136 100644 --- a/hashes/src/sha256.rs +++ b/hashes/src/sha256.rs @@ -916,7 +916,7 @@ mod tests { // Hash through high-level API, check hex encoding/decoding let hash = sha256::Hash::hash(test.input.as_bytes()); assert_eq!(hash, test.output_str.parse::().expect("parse hex")); - assert_eq!(&hash[..], &test.output[..]); + assert_eq!(&hash[..], &test.output); assert_eq!(&hash.to_string(), &test.output_str); // Hash through engine, checking that we can input byte by byte diff --git a/hashes/src/sha256d.rs b/hashes/src/sha256d.rs index d63545ba7..afd2d10f1 100644 --- a/hashes/src/sha256d.rs +++ b/hashes/src/sha256d.rs @@ -76,7 +76,7 @@ mod tests { // Hash through high-level API, check hex encoding/decoding let hash = sha256d::Hash::hash(test.input.as_bytes()); assert_eq!(hash, test.output_str.parse::().expect("parse hex")); - assert_eq!(&hash[..], &test.output[..]); + assert_eq!(&hash[..], &test.output); assert_eq!(&hash.to_string(), &test.output_str); // Hash through engine, checking that we can input byte by byte diff --git a/hashes/src/sha384.rs b/hashes/src/sha384.rs index 0b94ecf58..e28448440 100644 --- a/hashes/src/sha384.rs +++ b/hashes/src/sha384.rs @@ -123,7 +123,7 @@ mod tests { // Hash through high-level API, check hex encoding/decoding let hash = sha384::Hash::hash(test.input.as_bytes()); assert_eq!(hash, test.output_str.parse::().expect("parse hex")); - assert_eq!(&hash[..], &test.output[..]); + assert_eq!(&hash[..], &test.output); assert_eq!(&hash.to_string(), &test.output_str); // Hash through engine, checking that we can input byte by byte diff --git a/hashes/src/sha512.rs b/hashes/src/sha512.rs index a62c161ac..b85e2fc51 100644 --- a/hashes/src/sha512.rs +++ b/hashes/src/sha512.rs @@ -370,7 +370,7 @@ mod tests { // Hash through high-level API, check hex encoding/decoding let hash = sha512::Hash::hash(test.input.as_bytes()); assert_eq!(hash, test.output_str.parse::().expect("parse hex")); - assert_eq!(&hash[..], &test.output[..]); + assert_eq!(&hash[..], &test.output); assert_eq!(&hash.to_string(), &test.output_str); // Hash through engine, checking that we can input byte by byte diff --git a/hashes/src/sha512_256.rs b/hashes/src/sha512_256.rs index a21d33489..c1c2767c1 100644 --- a/hashes/src/sha512_256.rs +++ b/hashes/src/sha512_256.rs @@ -123,7 +123,7 @@ mod tests { // Hash through high-level API, check hex encoding/decoding let hash = sha512_256::Hash::hash(test.input.as_bytes()); assert_eq!(hash, test.output_str.parse::().expect("parse hex")); - assert_eq!(&hash[..], &test.output[..]); + assert_eq!(&hash[..], &test.output); assert_eq!(&hash.to_string(), &test.output_str); // Hash through engine, checking that we can input byte by byte diff --git a/hashes/src/siphash24.rs b/hashes/src/siphash24.rs index 5ffd8a89f..8999c64b1 100644 --- a/hashes/src/siphash24.rs +++ b/hashes/src/siphash24.rs @@ -318,7 +318,7 @@ mod tests { for i in 0..64 { vin[i] = i as u8; - let vec = Hash::from_slice(&vecs[i][..]).unwrap(); + let vec = Hash::from_slice(&vecs[i]).unwrap(); let out = Hash::hash_with_keys(k0, k1, &vin[0..i]); assert_eq!(vec, out, "vec #{}", i);