aboutsummaryrefslogtreecommitdiff
path: root/src/modules/web.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/web.rs')
-rw-r--r--src/modules/web.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/web.rs b/src/modules/web.rs
index 9a5369b..2bb2833 100644
--- a/src/modules/web.rs
+++ b/src/modules/web.rs
@@ -4,7 +4,7 @@ use {
route::track_mount,
url::{ROOT_GEMINI_URL, ROOT_HTTPS_URL},
},
- windmark::response::Response,
+ windmark::{context::RouteContext, response::Response},
};
fn error(message: &str, context: &windmark::context::RouteContext) -> Response {
@@ -35,7 +35,7 @@ To visit the web version of this exact page, <{ROOT_HTTPS_URL}/web>, you would v
router,
"/web/*url",
"World Wide Web to Gemini Gateway Visitor",
- async move |context| {
+ async move |context: RouteContext| {
Response::success({
let Ok(url) = url::Url::parse(&format!(
"https://{}",