aboutsummaryrefslogtreecommitdiff
path: root/src/handler/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'src/handler/hooks')
-rw-r--r--src/handler/hooks/post_route.rs4
-rw-r--r--src/handler/hooks/pre_route.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/handler/hooks/post_route.rs b/src/handler/hooks/post_route.rs
index eea0128..f4a919d 100644
--- a/src/handler/hooks/post_route.rs
+++ b/src/handler/hooks/post_route.rs
@@ -20,9 +20,9 @@ use crate::{context::HookContext, Response};
#[allow(clippy::module_name_repetitions)]
pub trait PostRouteHook:
- FnMut(HookContext<'_>, &mut Response) + Send + Sync
+ FnMut(HookContext, &mut Response) + Send + Sync
{
}
-impl<T> PostRouteHook for T where T: FnMut(HookContext<'_>, &mut Response) + Send + Sync
+impl<T> PostRouteHook for T where T: FnMut(HookContext, &mut Response) + Send + Sync
{}
diff --git a/src/handler/hooks/pre_route.rs b/src/handler/hooks/pre_route.rs
index 13f4482..af5ed9d 100644
--- a/src/handler/hooks/pre_route.rs
+++ b/src/handler/hooks/pre_route.rs
@@ -19,6 +19,6 @@
use crate::context::HookContext;
#[allow(clippy::module_name_repetitions)]
-pub trait PreRouteHook: FnMut(HookContext<'_>) + Send + Sync {}
+pub trait PreRouteHook: FnMut(HookContext) + Send + Sync {}
-impl<T> PreRouteHook for T where T: FnMut(HookContext<'_>) + Send + Sync {}
+impl<T> PreRouteHook for T where T: FnMut(HookContext) + Send + Sync {}