diff options
Diffstat (limited to 'src/handler/response')
| -rw-r--r-- | src/handler/response/error.rs | 7 |
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 {} |