aboutsummaryrefslogtreecommitdiff
path: root/src/handler
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-06 07:25:24 +0000
committerFuwn <[email protected]>2023-04-06 07:25:24 +0000
commit4444f64ee98f314938a383b4dfdf3cd74fd7e717 (patch)
tree3c4f36a742112e0a0cde337aaa0ffe3fd7096a99 /src/handler
parentfeat(cargo): bump 0.3.0 -> 0.3.1 (diff)
downloadwindmark-4444f64ee98f314938a383b4dfdf3cd74fd7e717.tar.xz
windmark-4444f64ee98f314938a383b4dfdf3cd74fd7e717.zip
fix(context): fix async sharing
Diffstat (limited to 'src/handler')
-rw-r--r--src/handler/response/error.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/handler/response/error.rs b/src/handler/response/error.rs
index da57898..c433a46 100644
--- a/src/handler/response/error.rs
+++ b/src/handler/response/error.rs
@@ -19,10 +19,7 @@
use crate::{context::ErrorContext, Response};
#[allow(clippy::module_name_repetitions)]
-pub trait ErrorResponse:
- FnMut(ErrorContext<'_>) -> Response + Send + Sync
-{
-}
+pub trait ErrorResponse: FnMut(ErrorContext) -> Response + Send + Sync {}
-impl<T> ErrorResponse for T where T: FnMut(ErrorContext<'_>) -> Response + Send + Sync
+impl<T> ErrorResponse for T where T: FnMut(ErrorContext) -> Response + Send + Sync
{}