From 99aa6e0054ac5a11831628116e188a69bbf169b9 Mon Sep 17 00:00:00 2001 From: qwxp Date: Thu, 2 Jan 2025 15:56:32 +0330 Subject: [PATCH] remove async_trait --- src/validator.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/validator.rs b/src/validator.rs index db36639..0531250 100644 --- a/src/validator.rs +++ b/src/validator.rs @@ -9,7 +9,6 @@ pub mod test; use crate::{HasValidate, ValidationRejection}; -use axum::async_trait; use axum::extract::{FromRef, FromRequest, FromRequestParts, Request}; use axum::http::request::Parts; use std::fmt::Display; @@ -144,7 +143,6 @@ pub trait HasValidateArgs<'v> { fn get_validate_args(&self) -> &Self::ValidateArgs; } -#[async_trait] impl FromRequest for Valid where State: Send + Sync, @@ -162,7 +160,6 @@ where } } -#[async_trait] impl FromRequestParts for Valid where State: Send + Sync, @@ -180,7 +177,6 @@ where } } -#[async_trait] impl FromRequest for ValidEx where State: Send + Sync, @@ -201,7 +197,6 @@ where } } -#[async_trait] impl FromRequestParts for ValidEx where State: Send + Sync,