From 9a5a947f8d2f7bf703bce3e6087d3e3539bd0344 Mon Sep 17 00:00:00 2001 From: atlas Date: Tue, 29 Sep 2026 20:50:05 +0200 Subject: [PATCH] swarm-controller: fix broken rustdoc intra-doc link to AGENT_TOKEN_NAME legacy_tokens.rs referenced [`AGENT_TOKEN_NAME`] unqualified, but the const lives in the sibling agent_token module and isn't in scope here; rustdoc's broken-intra-doc-links lint (denied) failed the docs build. --- swarm-controller/src/forge/legacy_tokens.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/swarm-controller/src/forge/legacy_tokens.rs b/swarm-controller/src/forge/legacy_tokens.rs index 25fe0407..917ab5e3 100644 --- a/swarm-controller/src/forge/legacy_tokens.rs +++ b/swarm-controller/src/forge/legacy_tokens.rs @@ -41,8 +41,9 @@ pub fn is_legacy_token_name(name: &str) -> bool { .is_some_and(|secs| !secs.is_empty() && secs.bytes().all(|b| b.is_ascii_digit())) } -/// The agents a sweep may touch: those whose [`AGENT_TOKEN_NAME`] token is -/// current, never [`CORE_USER`]. +/// The agents a sweep may touch: those whose +/// [`super::agent_token::AGENT_TOKEN_NAME`] token is current, never +/// [`CORE_USER`]. pub fn sweepable(observed: &[(String, Observed)]) -> Vec { observed .iter()