From 8125edc71c2beae0c85f827b94c8d183600f5b9a Mon Sep 17 00:00:00 2001 From: Andrei Sousa Date: Fri, 5 Jan 2024 05:11:59 +0100 Subject: [PATCH] fix(lint): clippy --- src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state.rs b/src/state.rs index 6e2b546..666ff5e 100644 --- a/src/state.rs +++ b/src/state.rs @@ -16,7 +16,7 @@ pub async fn get_vms(state_ptr: StatePtr) -> Vec { let vms = state_ptr.read().await; let mut new_vms: Vec = Vec::new(); - for (_, item) in vms.iter().enumerate() { + for item in vms.iter() { new_vms.push(item.clone()); }