From fdf3a3362eb4e6e8126fa845258aaf3d0726e446 Mon Sep 17 00:00:00 2001 From: gengteng Date: Tue, 26 Sep 2023 16:08:00 +0800 Subject: [PATCH] remove 'static --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index cebbaec..ace8782 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -190,7 +190,7 @@ pub trait HasValidate { #[async_trait] impl FromRequest for Valid where - S: Send + Sync + 'static, + S: Send + Sync, B: Send + Sync + 'static, E: HasValidate + FromRequest, E::Validate: Validate, @@ -220,7 +220,7 @@ where #[async_trait] impl FromRequestParts for Valid where - S: Send + Sync + 'static, + S: Send + Sync, E: HasValidate + FromRequestParts, E::Validate: Validate, ValidationContext: FromRef,