src/backup/data_blob.rs: avoid useless &, data is already a reference
This commit is contained in:
parent
6b809ff59b
commit
58d73ddb1d
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue