From 0d75cf79603121f7f13f1b6788bed08fe3bff31e Mon Sep 17 00:00:00 2001 From: Manuel Fuchs Date: Fri, 1 Mar 2024 11:10:03 +0100 Subject: [PATCH] Restrict access of handling.rs functions again --- libcnb/src/layer/handling.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libcnb/src/layer/handling.rs b/libcnb/src/layer/handling.rs index 8461b9e1..d0137bc7 100644 --- a/libcnb/src/layer/handling.rs +++ b/libcnb/src/layer/handling.rs @@ -291,7 +291,7 @@ enum Sboms { } /// Does not error if the layer doesn't exist. -pub(crate) fn delete_layer>( +fn delete_layer>( layers_dir: P, layer_name: &LayerName, ) -> Result<(), DeleteLayerError> { @@ -304,7 +304,7 @@ pub(crate) fn delete_layer>( Ok(()) } -pub(crate) fn replace_layer_sboms>( +fn replace_layer_sboms>( layers_dir: P, layer_name: &LayerName, sboms: &[Sbom], @@ -331,7 +331,7 @@ pub(crate) fn replace_layer_sboms>( Ok(()) } -pub(crate) fn replace_layer_exec_d_programs>( +fn replace_layer_exec_d_programs>( layers_dir: P, layer_name: &LayerName, exec_d_programs: &HashMap, @@ -372,7 +372,7 @@ pub(crate) fn replace_layer_exec_d_programs>( Ok(()) } -pub(crate) fn write_layer_metadata>( +fn write_layer_metadata>( layers_dir: P, layer_name: &LayerName, layer_content_metadata: &LayerContentMetadata, @@ -413,7 +413,7 @@ fn write_layer>( Ok(()) } -pub(crate) fn read_layer>( +fn read_layer>( layers_dir: P, layer_name: &LayerName, ) -> Result>, ReadLayerError> {