Watch
0
0
Fork
You've already forked hyperhive
0

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.
This commit is contained in:
atlas 2026-09-29 20:50:05 +02:00 • committed by mara
commit 9a5a947f8d

View file

@ -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<String> {
observed
.iter()