From: Dominik Rusovac <d.rusovac@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager] ui: fix clippy warnings
Date: Tue, 3 Mar 2026 10:31:05 +0100 [thread overview]
Message-ID: <20260303093105.138136-1-d.rusovac@proxmox.com> (raw)
Remove redundant guard and needless borrow.
Signed-off-by: Dominik Rusovac <d.rusovac@proxmox.com>
---
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, include_remote: bool) -> String {
Ok(NativeUpid::PbsUpid(upid)) => {
format_task_description(&upid.worker_type, upid.worker_id.as_deref())
}
- Err(_) => format_upid(&remote_upid.upid()),
+ Err(_) => format_upid(remote_upid.upid()),
};
if include_remote {
@@ -155,7 +155,7 @@ impl TaskWorkerType {
task_type if task_type.starts_with("vz") && task_type != "vzdump" => {
TaskWorkerType::Lxc
}
- task_type if task_type == "vzdump" => TaskWorkerType::Backup,
+ "vzdump" => TaskWorkerType::Backup,
task_type if task_type.starts_with("ceph") => TaskWorkerType::Ceph,
task_type if task_type.starts_with("ha") => TaskWorkerType::Ha,
other => TaskWorkerType::Other(other.to_string()),
--
2.47.3
next reply other threads:[~2026-03-03 9:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-03 9:31 Dominik Rusovac [this message]
2026-03-03 9:49 ` applied: " Lukas Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260303093105.138136-1-d.rusovac@proxmox.com \
--to=d.rusovac@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox