From dd67bcf487e17b58435d712e49fa7e7b9bc2a408 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 17 Jun 2024 07:36:42 -0700 Subject: build: nix flake --- src/modules/web.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/web.rs') 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://{}", -- cgit v1.2.3