From cce85ec4e37524c05ef6f7a75ef676a7c785f43c Mon Sep 17 00:00:00 2001 From: DeFiDude <59237470+DeFiDude@users.noreply.github.com> Date: Sun, 15 Nov 2026 00:26:35 -0700 Subject: [PATCH] docs: no rustdoc links to private items --- crates/rns-runtime/src/link_manager.rs | 3 +-- crates/rns-transport/src/discovery/stamper.rs | 2 +- crates/rns-transport/src/store/legacy.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/rns-runtime/src/link_manager.rs b/crates/rns-runtime/src/link_manager.rs index bd29b61..b783a90 100644 --- a/crates/rns-runtime/src/link_manager.rs +++ b/crates/rns-runtime/src/link_manager.rs @@ -7387,8 +7387,7 @@ impl LinkManager { /// [`Self::register_deferred_request_handler`] with declared admission /// accounting and optional refusal replies. Registration also fails for a - /// zero copy count or a refusal reply over - /// [`crate::deferred_request::MAX_REFUSAL_REPLY`] bytes. + /// zero copy count or a refusal reply over 256 bytes. pub fn register_deferred_request_handler_with( &mut self, path: &str, diff --git a/crates/rns-transport/src/discovery/stamper.rs b/crates/rns-transport/src/discovery/stamper.rs index 1519a3a..b26fccd 100644 --- a/crates/rns-transport/src/discovery/stamper.rs +++ b/crates/rns-transport/src/discovery/stamper.rs @@ -67,7 +67,7 @@ pub(crate) fn generation_threads(target_value: f64) -> NonZeroUsize { impl DiscoveryStamper for RnsDiscoveryStamper { /// Uses `ctl`'s cancel flag and deadline; the worker count follows - /// [`generation_threads`]. + /// `generation_threads`. fn generate( &self, infohash: &[u8; 32], diff --git a/crates/rns-transport/src/store/legacy.rs b/crates/rns-transport/src/store/legacy.rs index f990492..5111189 100644 --- a/crates/rns-transport/src/store/legacy.rs +++ b/crates/rns-transport/src/store/legacy.rs @@ -259,7 +259,7 @@ const ANNOUNCE_CHUNK_FILES: usize = 4096; /// Imports `storage/cache/announces/` files, each `[raw, interface]`, as /// `AnnounceCache.import_legacy` does in `RNS/Storage.py`. Every announce gets /// `received = now`. Upstream unlinks every file before its one commit; here the -/// files go in chunks of [`ANNOUNCE_CHUNK_FILES`], and a chunk's files are removed +/// files go in chunks of `ANNOUNCE_CHUNK_FILES` (4,096), and a chunk's files are removed /// only after its transaction has committed, so an interrupted import loses /// nothing and resumes with the files that remain. A file whose name is not a /// 32-byte hash, or whose content does not decode, is removed without a row.