]> code.octet-stream.net Git - hashgood/blobdiff - src/calculate.rs
Fix clippy lint for write! vs writeln!
[hashgood] / src / calculate.rs
index 3ba5a7d0538be39b45a5616386e8082aebbb566f..955016dae59fe6139f97553cb9e7cef071dae415 100644 (file)
@@ -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()));