The network device configuration doesn't return a reference anymore,
so we do not need to dereference here anymore.

Signed-off-by: Stefan Hanreich <s.hanre...@proxmox.com>
---

Notes:
    This and the subsequent tests patch require a bump of proxmox-ve-config to 
work

 proxmox-firewall/src/firewall.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/proxmox-firewall/src/firewall.rs b/proxmox-firewall/src/firewall.rs
index 88fb460..e980bd5 100644
--- a/proxmox-firewall/src/firewall.rs
+++ b/proxmox-firewall/src/firewall.rs
@@ -801,11 +801,11 @@ impl Firewall {
                     ipset.push(cidr.into());
 
                     if let Some(ip_address) = network_device.ip() {
-                        ipset.push(IpsetEntry::from(*ip_address));
+                        ipset.push(IpsetEntry::from(ip_address));
                     }
 
                     if let Some(ip6_address) = network_device.ip6() {
-                        ipset.push(IpsetEntry::from(*ip6_address));
+                        ipset.push(IpsetEntry::from(ip6_address));
                     }
 
                     commands.append(&mut ipset.to_nft_objects(&env)?);
-- 
2.39.5


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to