From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 88A641FF17C for ; Wed, 20 Aug 2025 14:42:05 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A2818A7E1; Wed, 20 Aug 2025 14:43:48 +0200 (CEST) From: Lukas Wagner To: pdm-devel@lists.proxmox.com Date: Wed, 20 Aug 2025 14:43:27 +0200 Message-ID: <20250820124329.220124-6-l.wagner@proxmox.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250820124329.220124-1-l.wagner@proxmox.com> References: <20250820124329.220124-1-l.wagner@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1755693780554 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.023 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pdm-devel] [PATCH proxmox-datacenter-manager v7 5/7] fake remote: clippy fixes X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" Signed-off-by: Lukas Wagner Reviewed-by: Dominik Csapak --- Notes: No changes in v6 No changes in v5 No changes in v4 Added in v3 server/src/test_support/fake_remote.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/server/src/test_support/fake_remote.rs b/server/src/test_support/fake_remote.rs index 02d11f88..e32a88a1 100644 --- a/server/src/test_support/fake_remote.rs +++ b/server/src/test_support/fake_remote.rs @@ -1,4 +1,4 @@ -use std::{collections::HashMap, sync::Arc, time::Duration}; +use std::{sync::Arc, time::Duration}; use anyhow::{bail, Error}; use serde::Deserialize; @@ -129,7 +129,7 @@ impl pve_api_types::client::PveClient for FakePveClient { let mut vmid = 100; for _ in 0..self.nr_of_vms { - vmid = vmid + 1; + vmid += 1; result.push(ClusterResource { cgroup_mode: None, content: None, @@ -163,7 +163,7 @@ impl pve_api_types::client::PveClient for FakePveClient { } for _ in 0..self.nr_of_cts { - vmid = vmid + 1; + vmid += 1; result.push(ClusterResource { cgroup_mode: None, content: None, @@ -358,7 +358,6 @@ impl pve_api_types::client::PveClient for FakePveClient { async fn list_nodes(&self) -> Result, proxmox_client::Error> { tokio::time::sleep(Duration::from_millis(self.api_delay_ms as u64)).await; Ok((0..self.nr_of_nodes) - .into_iter() .map(|i| ClusterNodeIndexResponse { node: format!("pve-{i}"), cpu: None, @@ -415,7 +414,6 @@ impl pve_api_types::client::PveClient for FakePveClient { let number_of_tasks = limit.min(number_of_tasks as u64); Ok((0..number_of_tasks) - .into_iter() .map(|i| make_task(now - i as i64 * NEW_TASK_EVERY * 60)) .collect()) } -- 2.47.2 _______________________________________________ pdm-devel mailing list pdm-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel