[pve-devel] [PATCH proxmox-ve-rs 2/2] clippy: you should consider adding a `Default` implementation for `Group`
    Stefan Hanreich 
    s.hanreich at proxmox.com
       
    Mon Nov 25 17:18:33 CET 2024
    
    
  
Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
 proxmox-ve-config/src/firewall/types/group.rs | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/proxmox-ve-config/src/firewall/types/group.rs b/proxmox-ve-config/src/firewall/types/group.rs
index 7455268..b9b71b6 100644
--- a/proxmox-ve-config/src/firewall/types/group.rs
+++ b/proxmox-ve-config/src/firewall/types/group.rs
@@ -9,6 +9,12 @@ pub struct Group {
     comment: Option<String>,
 }
 
+impl Default for Group {
+    fn default() -> Self {
+        Self::new()
+    }
+}
+
 impl Group {
     pub const fn new() -> Self {
         Self {
-- 
2.39.5
    
    
More information about the pve-devel
mailing list