[pbs-devel] [PATCH proxmox-backup 3/7] api: tape: fix clippy warning on map iteration

Christian Ebner c.ebner at proxmox.com
Mon Jul 28 14:40:02 CEST 2025


The loop only iterates over the values of the map, so use
the `values` iterator instead of iterating key value pairs.

Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
 src/api2/tape/restore.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api2/tape/restore.rs b/src/api2/tape/restore.rs
index 9e55cae26..8b6979017 100644
--- a/src/api2/tape/restore.rs
+++ b/src/api2/tape/restore.rs
@@ -354,7 +354,7 @@ pub fn restore(
         bail!("no datastores given");
     }
 
-    for (_, (target, _)) in &used_datastores {
+    for (target, _) in used_datastores.values() {
         assert_datastore_type(target.name())?;
     }
 
-- 
2.47.2





More information about the pbs-devel mailing list