[pve-devel] [PATCH proxmox-firewall 1/4] ipsets: remove dereference
Stefan Hanreich
s.hanreich at proxmox.com
Wed Feb 19 11:09:46 CET 2025
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.hanreich at 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
More information about the pve-devel
mailing list