[pve-devel] [PATCH proxmox-firewall 1/2] clippy: useless use of `format!`

Stefan Hanreich s.hanreich at proxmox.com
Mon Nov 25 17:18:32 CET 2024


Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
 proxmox-firewall/src/firewall.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxmox-firewall/src/firewall.rs b/proxmox-firewall/src/firewall.rs
index cdbe401..88fb460 100644
--- a/proxmox-firewall/src/firewall.rs
+++ b/proxmox-firewall/src/firewall.rs
@@ -96,7 +96,7 @@ impl Firewall {
     }
 
     fn guest_invalid_conntrack_chain() -> ChainPart {
-        ChainPart::new(Self::guest_table(), format!("invalid-conntrack"))
+        ChainPart::new(Self::guest_table(), "invalid-conntrack".to_string())
     }
 
     fn host_conntrack_chain() -> ChainPart {
-- 
2.39.5




More information about the pve-devel mailing list