src/backup/data_blob.rs: avoid useless &, data is already a reference

This commit is contained in:
Dietmar Maurer 2020-09-01 12:47:17 +02:00
parent 6b809ff59b
commit 58d73ddb1d
1 changed files with 1 additions and 1 deletions

View File

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