[pdm-devel] [PATCH proxmox v2 3/4] access-control: derive Debug and PartialEq on AclTree and AclTreeNode
Shannon Sterz
s.sterz at proxmox.com
Fri Oct 24 16:51:19 CEST 2025
Signed-off-by: Shannon Sterz <s.sterz at proxmox.com>
---
proxmox-access-control/src/acl.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/proxmox-access-control/src/acl.rs b/proxmox-access-control/src/acl.rs
index 9fb97f55..2f9bb598 100644
--- a/proxmox-access-control/src/acl.rs
+++ b/proxmox-access-control/src/acl.rs
@@ -36,7 +36,7 @@ pub fn split_acl_path(path: &str) -> Vec<&str> {
}
/// Tree representing a parsed acl.cfg
-#[derive(Default)]
+#[derive(Default, Debug, PartialEq)]
pub struct AclTree {
/// Root node of the tree.
///
@@ -46,7 +46,7 @@ pub struct AclTree {
}
/// Node representing ACLs for a certain ACL path.
-#[derive(Default)]
+#[derive(Default, Debug, PartialEq)]
pub struct AclTreeNode {
/// `User` or `Token` ACLs for this node.
pub users: HashMap<Authid, HashMap<String, bool>>,
--
2.47.3
More information about the pdm-devel
mailing list