From 54763b39c7f49439a6cbf060007fcc1663c45f42 Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Mon, 10 Mar 2025 12:16:31 +0100 Subject: [PATCH] datastore: restrict datastores list_images method scope to module Drop the pub scope for `DataStore`s `list_images` method. This method is only used to generate a list of index files found in the datastore for iteration during garbage collection. There are no other call sites and this is intended to only be used within the module itself. Allows to be more flexible for future method signature adaptions. No functional changes. Signed-off-by: Christian Ebner --- pbs-datastore/src/datastore.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbs-datastore/src/datastore.rs b/pbs-datastore/src/datastore.rs index 75c0c16a..a6a91ca7 100644 --- a/pbs-datastore/src/datastore.rs +++ b/pbs-datastore/src/datastore.rs @@ -970,7 +970,7 @@ impl DataStore { ListGroups::new(Arc::clone(self), ns)?.collect() } - pub fn list_images(&self) -> Result, Error> { + fn list_images(&self) -> Result, Error> { let base = self.base_path(); let mut list = vec![];