[pbs-devel] applied: [PATCH backup 2/3] config: acl: docs: link to PRIVILEGES with namespace

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Dec 3 13:34:10 CET 2024


On December 3, 2024 10:32 am, Maximiliano Sandoval wrote:
> Otherwise:
> 
> ```
> warning: unresolved link to `PRIVILEGES`
>   --> pbs-config/src/acl.rs:15:71
>    |
> 15 | /// Map of pre-defined [Roles](Role) to their associated [privileges](PRIVILEGES) combination
>    |                                                                       ^^^^^^^^^^ no item named `PRIVILEGES` in scope
>    |
>    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
>    = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
> ```
> 
> Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
> ---
>  pbs-config/src/acl.rs | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/pbs-config/src/acl.rs b/pbs-config/src/acl.rs
> index d8138078..e8690560 100644
> --- a/pbs-config/src/acl.rs
> +++ b/pbs-config/src/acl.rs
> @@ -12,8 +12,8 @@ use pbs_api_types::{Authid, Role, Userid, ROLE_NAME_NO_ACCESS};
>  
>  use crate::{open_backup_lockfile, replace_backup_config, BackupLockGuard};
>  
> -/// Map of pre-defined [Roles](Role) to their associated [privileges](PRIVILEGES) combination
> -/// and description.
> +/// Map of pre-defined [Roles](Role) to their associated
> +/// [privileges](pbs_api_types::PRIVILEGES) combination and description.
>  pub static ROLE_NAMES: LazyLock<HashMap<&'static str, (u64, &'static str)>> = LazyLock::new(|| {
>      let mut map = HashMap::new();
>  
> -- 
> 2.39.5
> 
> 
> 
> _______________________________________________
> pbs-devel mailing list
> pbs-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
> 
> 
> 




More information about the pbs-devel mailing list