summaryrefslogtreecommitdiffstats
path: root/src/http/routes/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/routes/mod.rs')
-rw-r--r--src/http/routes/mod.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/http/routes/mod.rs b/src/http/routes/mod.rs
index 1affabf..301fe89 100644
--- a/src/http/routes/mod.rs
+++ b/src/http/routes/mod.rs
@@ -50,9 +50,6 @@ fn logout(req: &Req) -> Res {
}
/// The router dispatches to it. The login tests drive a live listener, so they cannot move into the module.
-///
-/// Module-internal in a production build, `pub` only under `test-support`:
-/// one body behind two visibility declarations, exactly one of which compiles.
#[cfg(feature = "test-support")]
pub fn login(state: &State, req: &Req) -> Res {
login_impl(state, req)
@@ -195,8 +192,6 @@ fn flash_sub(state: &State, req: &Req, msg: &str, err: bool) -> Res {
page_to_res(Subscriptions { page, rows }, 200)
}
-// ------------------------------------------------------------ rendering --
-
fn page_to_res<T: askama::Template>(t: T, status: u16) -> Res {
match askama::Template::render(&t) {
Ok(body) => Res::html(status, body),