this is now a compiler error in edition 2024 and ws unnecessary
anyway.

Signed-off-by: Shannon Sterz <[email protected]>
---
 src/pages/page_qemu_status/dashboard_panel.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pages/page_qemu_status/dashboard_panel.rs 
b/src/pages/page_qemu_status/dashboard_panel.rs
index 0a61d55..0250a58 100644
--- a/src/pages/page_qemu_status/dashboard_panel.rs
+++ b/src/pages/page_qemu_status/dashboard_panel.rs
@@ -335,7 +335,7 @@ impl Component for PveQemuDashboardPanel {
                         Ok(mut data) => {
                             // hack: The PVE api sometimes return Null for 
diskread/diskwrite
                             // so we simply remove Null values...
-                            if let Value::Object(ref mut map) = &mut data {
+                            if let Value::Object(map) = &mut data {
                                 map.retain(|_k, v| v != &Value::Null);
                             }
                             let data = 
serde_json::from_value::<QemuStatus>(data)
-- 
2.47.3



_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to