Skip to content

Commit

Permalink
fix: CI lint
Browse files Browse the repository at this point in the history
fixed `needless_borrow`

Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 authored and arronwy committed Sep 6, 2022
1 parent d4e1b76 commit a1d7ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pull.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ impl PullClient {
format!(
"{}:{:x}",
DIGEST_SHA256,
sha2::Sha256::digest(&plaintext_layer.as_slice())
sha2::Sha256::digest(plaintext_layer.as_slice())
)
} else if diff_id.starts_with(DIGEST_SHA512) {
format!(
"{}:{:x}",
DIGEST_SHA512,
sha2::Sha512::digest(&plaintext_layer.as_slice())
sha2::Sha512::digest(plaintext_layer.as_slice())
)
} else {
return Err(anyhow!("{}: {:?}", ERR_BAD_UNCOMPRESSED_DIGEST, diff_id));
Expand Down

0 comments on commit a1d7ba3

Please sign in to comment.