From 0bc4ac8ba3a16aed491c3260d51406685cde2408 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 17 May 2023 02:12:20 -0700 Subject: deps(windmark): bump to 0.3.9 --- src/modules/router/module.rs | 4 ++-- src/modules/router/translate/module.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/router') diff --git a/src/modules/router/module.rs b/src/modules/router/module.rs index cd7c862..76083b8 100644 --- a/src/modules/router/module.rs +++ b/src/modules/router/module.rs @@ -18,7 +18,7 @@ use windmark::context::HookContext; -pub fn module(router: &mut windmark::Router) { +pub fn module(router: &mut windmark::router::Router) { router.set_pre_route_callback(move |context: HookContext| { info!( "accepted connection from {} to {}", @@ -29,7 +29,7 @@ pub fn module(router: &mut windmark::Router) { super::ticker::module(&context); }); router.set_post_route_callback({ - |context: HookContext, response: &mut windmark::Response| { + |context: HookContext, response: &mut windmark::response::Response| { info!( "closed connection from {} to {}", context.peer_address.unwrap().ip(), diff --git a/src/modules/router/translate/module.rs b/src/modules/router/translate/module.rs index bb1e6a4..78ab533 100644 --- a/src/modules/router/translate/module.rs +++ b/src/modules/router/translate/module.rs @@ -21,7 +21,7 @@ use crate::modules::router::translate::deepl::language_code_to_language_name; pub fn module( context: &windmark::context::HookContext, - response: &mut windmark::Response, + response: &mut windmark::response::Response, language: S, ) -> Result<(), serde_json::Error> where -- cgit v1.2.3