summaryrefslogtreecommitdiffstats
path: root/src/http/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/mod.rs')
-rw-r--r--src/http/mod.rs9
1 files changed, 1 insertions, 8 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;