From 3a3af6e2b6c8f70f28d80be307bab12227396ebb Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 23 Jul 2020 10:39:18 +0200 Subject: [PATCH] backup manifest: make lookup_file_info public MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit useful to get info like, was the previous snapshot encrypted in libproxmox-backup-qemu Requested-by: Fabian Grünbichler Signed-off-by: Thomas Lamprecht --- src/backup/manifest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backup/manifest.rs b/src/backup/manifest.rs index f90f1159..66898b62 100644 --- a/src/backup/manifest.rs +++ b/src/backup/manifest.rs @@ -104,7 +104,7 @@ impl BackupManifest { &self.files[..] } - fn lookup_file_info(&self, name: &str) -> Result<&FileInfo, Error> { + pub fn lookup_file_info(&self, name: &str) -> Result<&FileInfo, Error> { let info = self.files.iter().find(|item| item.filename == name);