From f80cb33993703d4651fa69cfe42c2cb5f9dc328f Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Wed, 7 Aug 2024 09:43:52 +0200 Subject: [PATCH] ldap: docs: turn uri into link Fixes the following cargo doc warning: warning: this URL is not a hyperlink --> proxmox-ldap/src/lib.rs:199:9 | 199 | /// https://www.rfc-editor.org/rfc/rfc4512#section-5.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `` | = note: bare URLs are not automatically turned into clickable links = note: `#[warn(rustdoc::bare_urls)]` on by default Signed-off-by: Maximiliano Sandoval Reviewed-by: Lukas Wagner --- proxmox-ldap/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxmox-ldap/src/lib.rs b/proxmox-ldap/src/lib.rs index 014bdcc1..4766f338 100644 --- a/proxmox-ldap/src/lib.rs +++ b/proxmox-ldap/src/lib.rs @@ -195,8 +195,9 @@ impl Connection { Ok(()) } - /// Retrieves an attribute from the root DSE according to RFC 4512, Section 5.1 - /// https://www.rfc-editor.org/rfc/rfc4512#section-5.1 + /// Retrieves an attribute from the root DSE according to [RFC 4512], Section 5.1 + /// + /// [RFC 4512]: https://www.rfc-editor.org/rfc/rfc4512#section-5.1 pub async fn retrieve_root_dse_attr(&self, attr: &str) -> Result, Error> { let mut ldap = self.create_connection().await?;