[pbs-devel] [PATCH proxmox-backup v2 3/8] api: tape: fix clippy warning on map iteration
Christian Ebner
c.ebner at proxmox.com
Wed Jul 30 09:57:45 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>
Reviewed-by: Lukas Wagner <l.wagner at proxmox.com>
Tested-by: Lukas Wagner <l.wagner at proxmox.com>
---
changes since version 1:
- no changes
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