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: `<https://www.rfc-editor.org/rfc/rfc4512#section-5.1>`
    |
    = note: bare URLs are not automatically turned into clickable links
    = note: `#[warn(rustdoc::bare_urls)]` on by default

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Maximiliano Sandoval 2024-08-07 09:43:52 +02:00 committed by Thomas Lamprecht
parent 0c889ff2da
commit f80cb33993

View File

@ -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<Vec<String>, Error> {
let mut ldap = self.create_connection().await?;