From e66b381359bc7ddc1b45ef12b95c7e21dc5df33a Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 27 Jun 2024 16:49:10 -0400 Subject: [PATCH] container: Drop unnecessary &mut The proxy uses shared references; prep for some investigation of parallel unpack. Signed-off-by: Colin Walters --- lib/src/container/store.rs | 2 +- lib/src/container/unencapsulate.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/container/store.rs b/lib/src/container/store.rs index 49d2ca65..8a92ad0e 100644 --- a/lib/src/container/store.rs +++ b/lib/src/container/store.rs @@ -705,7 +705,7 @@ impl ImageImporter { .await?; } let (blob, driver) = fetch_layer_decompress( - &mut self.proxy, + &self.proxy, &self.proxy_img, &import.manifest, &layer.layer, diff --git a/lib/src/container/unencapsulate.rs b/lib/src/container/unencapsulate.rs index 55303e95..2f90e159 100644 --- a/lib/src/container/unencapsulate.rs +++ b/lib/src/container/unencapsulate.rs @@ -263,7 +263,7 @@ fn new_async_decompressor( /// A wrapper for [`get_blob`] which fetches a layer and decompresses it. pub(crate) async fn fetch_layer_decompress<'a>( - proxy: &'a mut ImageProxy, + proxy: &'a ImageProxy, img: &OpenedImage, manifest: &oci_image::ImageManifest, layer: &'a oci_image::Descriptor,