]> git.proxmox.com Git - proxmox-backup.git/commitdiff
src/backup/data_blob.rs: avoid useless &, data is already a reference
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 1 Sep 2020 10:47:17 +0000 (12:47 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 1 Sep 2020 10:56:25 +0000 (12:56 +0200)
src/backup/data_blob.rs

index 59336b802bd237d57d1b8cec306fe8521fb12f4a..7902328d267149b2ae6d13af3a880275d741383a 100644 (file)
@@ -304,7 +304,7 @@ impl DataBlob {
 
         let digest = match config {
             Some(config) => config.compute_digest(data),
-            None => openssl::sha::sha256(&data),
+            None => openssl::sha::sha256(data),
         };
         if &digest != expected_digest {
             bail!("detected chunk with wrong digest.");