summaryrefslogtreecommitdiffstats
path: root/src/http
diff options
context:
space:
mode:
Diffstat (limited to 'src/http')
-rw-r--r--src/http/mod.rs9
-rw-r--r--src/http/render.rs18
-rw-r--r--src/http/sse.rs9
3 files changed, 4 insertions, 32 deletions
diff --git a/src/http/mod.rs b/src/http/mod.rs
index aea21dc..715b448 100644
--- a/src/http/mod.rs
+++ b/src/http/mod.rs
@@ -107,10 +107,7 @@ impl Res {
}
}
-/// 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 server {
pub struct Server {
pub addr: String,
@@ -118,10 +115,6 @@ mod server {
}
/// the handle to a running HTTP listener. `spawn` returns it and `main` holds it without naming the type; the test harness stores it in a field because it needs the bound address.
-///
-/// `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 server::Server;
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;
diff --git a/src/http/sse.rs b/src/http/sse.rs
index 36a9d42..098a2fc 100644
--- a/src/http/sse.rs
+++ b/src/http/sse.rs
@@ -8,10 +8,7 @@ const MAX_LIFETIME: Duration = Duration::from_secs(30 * 60);
const KEEPALIVE: Duration = Duration::from_secs(10);
const POLL: Duration = Duration::from_millis(200);
-/// 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 log_tail {
use super::{builds, io, read_from, Duration, Instant, PathBuf, Read, KEEPALIVE, MAX_LIFETIME, POLL};
@@ -110,10 +107,6 @@ mod log_tail {
}
/// The SSE tail handle. The live test that names it drives a real server, so it 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 log_tail::LogTail;