From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 287CF1FF137 for ; Tue, 03 Mar 2026 10:48:49 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7A27B10EE8; Tue, 3 Mar 2026 10:49:52 +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:48 +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: <20260303075523.86754-1-d.rusovac@proxmox.com> In-Reply-To: <20260303075523.86754-1-d.rusovac@proxmox.com> X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1772531364170 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.046 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 Message-ID-Hash: SAQJPWAEA3BSTSOHQUXFLXWU3JHRAZQD X-Message-ID-Hash: SAQJPWAEA3BSTSOHQUXFLXWU3JHRAZQD 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 VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Tue Mar 3, 2026 at 8:55 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!