[pbs-devel] [PATCH backup 4/4] auth: doc: Explicitly set namespace for UserInfomation

Maximiliano Sandoval m.sandoval at proxmox.com
Tue Dec 3 14:41:39 CET 2024


Fixes the cargo doc warning:

```
warning: unresolved link to `UserInformation`
   --> src/auth.rs:418:53
    |
418 |     /// Check if a userid is enabled and return a [`UserInformation`] handle.
    |                                                     ^^^^^^^^^^^^^^^ no item named `UserInformation` 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>
---
 src/auth.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/auth.rs b/src/auth.rs
index d0fb0a9f..86b12a76 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -415,7 +415,7 @@ impl proxmox_auth_api::api::AuthContext for PbsAuthContext {
         "PBSAuthCookie"
     }
 
-    /// Check if a userid is enabled and return a [`UserInformation`] handle.
+    /// Check if a userid is enabled and return a [`proxmox_router::UserInformation`] handle.
     fn auth_id_is_active(&self, auth_id: &Authid) -> Result<bool, Error> {
         Ok(pbs_config::CachedUserInfo::new()?.is_active_auth_id(auth_id))
     }
-- 
2.39.5





More information about the pbs-devel mailing list