From 053dfbca8a4955a616e9b2c0f5a5d664c0db7aef Mon Sep 17 00:00:00 2001 From: aur-build Date: Sun, 22 Nov 2026 10:51:45 +0000 Subject: src,tests: retire the census commentary from the source A gated item used to carry its own defence: why it is `pub` only under `test-support`, which census once mistook a filename for a caller, why a wrapper is compiled out rather than deleted. The budget file already holds those claims and the ratchet already checks them, so the source keeps the one line that says what the item is. The module headers stop narrating the refactor that produced them. What survives is the wire protocol, the git pipe, the poisoned lock that must be recovered rather than unwedged. --- src/http/render.rs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'src/http/render.rs') diff --git a/src/http/render.rs b/src/http/render.rs index 316988a..bc2ad3d 100644 --- a/src/http/render.rs +++ b/src/http/render.rs @@ -1,9 +1,6 @@ use askama::Template; -/// The real definition. The module is private, so this `pub` -/// is not a nameable path from outside; the alias below is the -/// only way to reach it, and the alias is what carries the -/// feature-conditional visibility. +/// The real definition; the alias below carries the visibility. mod page { #[derive(Debug, Clone)] pub struct Page { @@ -27,10 +24,6 @@ mod page { } /// The render model's shared header. Every template and route handler that fills it lives inside `http`; the outside readers are the page tests. -/// -/// `pub` only under `test-support`. Production reaches the type -/// through its own module and never names it from outside; the -/// outside reader that needs the name is a test. #[cfg(feature = "test-support")] pub use page::Page; @@ -157,10 +150,7 @@ pub(crate) struct ReviewHead { pub diff_digest: String, } -/// The real definition. The module is private, so this `pub` -/// is not a nameable path from outside; the alias below is the -/// only way to reach it, and the alias is what carries the -/// feature-conditional visibility. +/// The real definition; the alias below carries the visibility. mod panel { #[derive(Debug, Clone)] pub struct Panel { @@ -172,10 +162,6 @@ mod panel { } /// A diff panel in the render model. The tests that assert on its body drive a real review and cannot move into the module. -/// -/// `pub` only under `test-support`. Production reaches the type -/// through its own module and never names it from outside; the -/// outside reader that needs the name is a test. #[cfg(feature = "test-support")] pub use panel::Panel; -- cgit v1.2.3