From: Dietmar Maurer <dietmar@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager 3/3] ui: lxc: remove wrong PartialEq implementation
Date: Tue, 21 Oct 2025 08:38:03 +0200 [thread overview]
Message-ID: <20251021063803.2046329-3-dietmar@proxmox.com> (raw)
In-Reply-To: <20251021063803.2046329-1-dietmar@proxmox.com>
i.e. we want to update the view on cpu property changes.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
---
ui/src/pve/lxc/overview.rs | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/ui/src/pve/lxc/overview.rs b/ui/src/pve/lxc/overview.rs
index 3c5ead4..4164727 100644
--- a/ui/src/pve/lxc/overview.rs
+++ b/ui/src/pve/lxc/overview.rs
@@ -20,7 +20,7 @@ use pdm_client::types::{IsRunning, LxcStatus};
use crate::renderer::{separator, status_row};
-#[derive(Clone, Debug, Properties)]
+#[derive(Clone, Debug, Properties, PartialEq)]
pub struct LxcOverviewPanel {
remote: String,
node: String,
@@ -35,20 +35,6 @@ pub struct LxcOverviewPanel {
pub status_interval: u32,
}
-impl PartialEq for LxcOverviewPanel {
- fn eq(&self, other: &Self) -> bool {
- if self.remote == other.remote && self.node == other.node {
- // only check some fields, so we don't update when e.g. only the cpu changes
- self.info.name == other.info.name
- && self.info.id == other.info.id
- && self.info.node == other.node
- } else {
- false
- }
- }
-}
-impl Eq for LxcOverviewPanel {}
-
impl LxcOverviewPanel {
pub fn new(remote: String, node: String, info: PveLxcResource) -> Self {
yew::props!(Self { remote, node, info })
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next prev parent reply other threads:[~2025-10-21 6:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-21 6:38 [pdm-devel] [PATCH datacenter-manager 1/3] ui: lxc: move files into subfolder, add Tabbar on top Dietmar Maurer
2025-10-21 6:38 ` [pdm-devel] [PATCH datacenter-manager 2/3] ui: lxc: cleanup: use module level imports Dietmar Maurer
2025-10-21 6:38 ` Dietmar Maurer [this message]
2025-10-22 5:18 ` [pdm-devel] applied: [PATCH datacenter-manager 1/3] ui: lxc: move files into subfolder, add Tabbar on top Thomas Lamprecht
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=20251021063803.2046329-3-dietmar@proxmox.com \
--to=dietmar@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.