From 4444f64ee98f314938a383b4dfdf3cd74fd7e717 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 6 Apr 2023 07:25:24 +0000 Subject: fix(context): fix async sharing --- src/handler/response/error.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/handler') 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 ErrorResponse for T where T: FnMut(ErrorContext<'_>) -> Response + Send + Sync +impl ErrorResponse for T where T: FnMut(ErrorContext) -> Response + Send + Sync {} -- cgit v1.2.3