Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Mar 9, 2024
1 parent efa6f6a commit 29684fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rattler_networking/src/oci_middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl OCIUrl {
.get("X-ExpectedSha256")
.and_then(|s| s.to_str().ok())
{
*req.url_mut() = oci_url.blob_url(&format!("sha256:{}", expected_sha_hash))?;
*req.url_mut() = oci_url.blob_url(&format!("sha256:{expected_sha_hash}"))?;
} else {
// get the tag from the URL retrieve the manifest
let manifest_url = oci_url.manifest_url()?; // TODO: handle error
Expand All @@ -208,7 +208,7 @@ impl OCIUrl {
*req.url_mut() = oci_url.blob_url(&layer.digest)?;
}

return Ok(());
Ok(())
}
}

Expand Down

0 comments on commit 29684fa

Please sign in to comment.