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 A43461FF137 for ; Tue, 03 Mar 2026 10:48:27 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 70BD710E20; Tue, 3 Mar 2026 10:49:30 +0100 (CET) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 03 Mar 2026 10:49:26 +0100 Message-Id: Subject: applied: [PATCH datacenter-manager] ui: fix clippy warnings From: "Lukas Wagner" To: "Dominik Rusovac" , X-Mailer: aerc 0.21.0-0-g5549850facc2-dirty References: <20260303093105.138136-1-d.rusovac@proxmox.com> In-Reply-To: <20260303093105.138136-1-d.rusovac@proxmox.com> X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1772531342812 X-SPAM-LEVEL: Spam detection results: 0 AWL -1.016 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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.66 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.968 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.495 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: PA5WOJPD7W6VJWNL3I2PMKST52VSPX3E X-Message-ID-Hash: PA5WOJPD7W6VJWNL3I2PMKST52VSPX3E X-MailFrom: l.wagner@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Tue Mar 3, 2026 at 10:31 AM CET, Dominik Rusovac wrote: > Remove redundant guard and needless borrow. > > Signed-off-by: Dominik Rusovac > --- > ui/src/tasks.rs | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/ui/src/tasks.rs b/ui/src/tasks.rs > index 0f9a9aa..4f77fd3 100644 > --- a/ui/src/tasks.rs > +++ b/ui/src/tasks.rs > @@ -118,7 +118,7 @@ pub fn format_optional_remote_upid(upid: &str, includ= e_remote: bool) -> String { > Ok(NativeUpid::PbsUpid(upid)) =3D> { > format_task_description(&upid.worker_type, upid.worker_i= d.as_deref()) > } > - Err(_) =3D> format_upid(&remote_upid.upid()), > + Err(_) =3D> format_upid(remote_upid.upid()), > }; > =20 > if include_remote { > @@ -155,7 +155,7 @@ impl TaskWorkerType { > task_type if task_type.starts_with("vz") && task_type !=3D "= vzdump" =3D> { > TaskWorkerType::Lxc > } > - task_type if task_type =3D=3D "vzdump" =3D> TaskWorkerType::= Backup, > + "vzdump" =3D> TaskWorkerType::Backup, > task_type if task_type.starts_with("ceph") =3D> TaskWorkerTy= pe::Ceph, > task_type if task_type.starts_with("ha") =3D> TaskWorkerType= ::Ha, > other =3D> TaskWorkerType::Other(other.to_string()), applied, thanks!