[pbs-devel] [PATCH proxmox 09/10] server: docs: fix unresolved link to systemd_notify

Maximiliano Sandoval m.sandoval at proxmox.com
Wed Aug 7 09:43:55 CEST 2024


Fixes the cargo docs warning:

warning: unresolved link to `systemd_notify`
   --> proxmox-daemon/src/server.rs:314:6
    |
314 | /// [systemd_notify] with [SystemdNotify::Ready](proxmox_systemd::notify::SystemdNotify) when the
    |      ^^^^^^^^^^^^^^ no item named `systemd_notify` 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>
---
 proxmox-daemon/src/server.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/proxmox-daemon/src/server.rs b/proxmox-daemon/src/server.rs
index e86d5e51..efea9078 100644
--- a/proxmox-daemon/src/server.rs
+++ b/proxmox-daemon/src/server.rs
@@ -311,7 +311,8 @@ impl Listenable for tokio::net::UnixListener {
 /// If the variable already exists, its contents will instead be used to restore the listening
 /// socket.  The finished listening socket is then passed to the `create_service` function which
 /// can be used to setup the TLS and the HTTP daemon. The returned future has to call
-/// [systemd_notify] with [SystemdNotify::Ready](proxmox_systemd::notify::SystemdNotify) when the
+/// [SystemdNotify::notify](proxmox_systemd::notify::SystemdNotify::notify) with
+/// [SystemdNotify::Ready](proxmox_systemd::notify::SystemdNotify) when the
 /// service is ready.
 pub async fn create_daemon<F, S, L>(
     address: L::Address,
-- 
2.39.2





More information about the pbs-devel mailing list