From 0157b6fdeaf8d15a1a95c6aa0f5a6e0fdfb3ff6b Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Mon, 26 Aug 2024 14:15:34 +0200 Subject: [PATCH] access-control: acl: add indentation to docs Fixes: warning: doc list item missing indentation --> proxmox-access-control/src/acl.rs:518:9 | 518 | /// -- user/token is more specific than group at each level | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation = note: `#[warn(clippy::doc_lazy_continuation)]` on by default help: indent this line | 518 | /// -- user/token is more specific than group at each level | ++ warning: doc list item missing indentation --> proxmox-access-control/src/acl.rs:519:9 | 519 | /// -- roles lower in the tree are more specific than those higher up along the path | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation help: indent this line | 519 | /// -- roles lower in the tree are more specific than those higher up along the path | ++ Signed-off-by: Maximiliano Sandoval --- 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 cab7eb20..1964abe2 100644 --- a/proxmox-access-control/src/acl.rs +++ b/proxmox-access-control/src/acl.rs @@ -515,8 +515,8 @@ impl AclTree { /// - iterate over all intermediate nodes along `path` and collect roles with `propagate` set /// - get all (propagating and non-propagating) roles for last component of path /// - more specific role maps replace less specific role maps - /// -- user/token is more specific than group at each level - /// -- roles lower in the tree are more specific than those higher up along the path + /// -- user/token is more specific than group at each level + /// -- roles lower in the tree are more specific than those higher up along the path pub fn roles(&self, auth_id: &Authid, path: &[&str]) -> HashMap { let mut node = &self.root; let mut role_map = node.extract_roles(auth_id, path.is_empty());