diff options
| author | Fuwn <[email protected]> | 2024-06-17 07:36:42 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-17 07:36:42 -0700 |
| commit | dd67bcf487e17b58435d712e49fa7e7b9bc2a408 (patch) | |
| tree | d38c4f71ac5b01a48d83c4d85c30e650ffe36a78 /src/modules/web.rs | |
| parent | feat(useful): update content (diff) | |
| download | locus-dd67bcf487e17b58435d712e49fa7e7b9bc2a408.tar.xz locus-dd67bcf487e17b58435d712e49fa7e7b9bc2a408.zip | |
build: nix flake
Diffstat (limited to 'src/modules/web.rs')
| -rw-r--r-- | src/modules/web.rs | 4 |
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://{}", |