From 43837608079f0e9972ec265b6bdc435cc7392d29 Mon Sep 17 00:00:00 2001 From: damocles Date: Wed, 2 Sep 2026 05:04:11 +0200 Subject: [PATCH] swarm-queue-client: fix broken intra-doc link in agent_status key() --- swarm-queue-client/src/agent_status.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/swarm-queue-client/src/agent_status.rs b/swarm-queue-client/src/agent_status.rs index 9174237c..98381465 100644 --- a/swarm-queue-client/src/agent_status.rs +++ b/swarm-queue-client/src/agent_status.rs @@ -36,8 +36,14 @@ pub const BUCKET: &str = "agent-status"; /// /// `/`-joined rather than NATS's usual `.`-joined subject style: this is a /// KV key, not a subject, and neither `hive` nor `agent` names can contain -/// `/` ([`hive_types::Ident`]'s charset is `[a-z0-9-]`), so the join is +/// `/` (`hive_types::Ident`'s charset is `[a-z0-9-]`), so the join is /// unambiguous to split back apart if a consumer ever needs to. +/// +/// Plain code span above, deliberately not an intra-doc link — this crate +/// doesn't depend on `hive_types`, and a bracketed reference to its `Ident` +/// type fails `cargo doc` with "no item named `hive_types` in scope" under +/// this workspace's `docs-rustdoc` CI job, which treats broken doc links as +/// errors. #[must_use] pub fn key(hive: &str, agent: &str) -> String { format!("{hive}/{agent}")