X-Git-Url: https://code.octet-stream.net/hashgood/blobdiff_plain/fe58ffda1c19d5c4d5b7ff3b42e0de7a6b7136ff..585a245dd6e90efc545dbd68f928da9e03086cb9:/src/calculate.rs diff --git a/src/calculate.rs b/src/calculate.rs index 3ba5a7d..955016d 100644 --- a/src/calculate.rs +++ b/src/calculate.rs @@ -157,7 +157,7 @@ mod tests { "b9193853f7798e92e2f6b82eda336fa7d6fc0fa90fdefe665f372b0bad8cdf8c"; fn verify_digest(alg: Algorithm, data: &'static [u8], hash: &str) { - let reader = Cursor::new(&*data); + let reader = Cursor::new(data); let digests = create_digests(&[alg], Box::new(reader)).unwrap(); assert_eq!(digests.len(), 1); assert_eq!(digests[0], (alg, hex::decode(hash).unwrap()));