summaryrefslogtreecommitdiff
path: root/axum-extra/src/extract/query.rs
diff options
context:
space:
mode:
Diffstat (limited to 'axum-extra/src/extract/query.rs')
-rw-r--r--axum-extra/src/extract/query.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/axum-extra/src/extract/query.rs b/axum-extra/src/extract/query.rs
index 7822f108..695ea957 100644
--- a/axum-extra/src/extract/query.rs
+++ b/axum-extra/src/extract/query.rs
@@ -1,5 +1,4 @@
use axum::{
- async_trait,
extract::FromRequestParts,
response::{IntoResponse, Response},
Error,
@@ -82,7 +81,6 @@ use std::fmt;
#[derive(Debug, Clone, Copy, Default)]
pub struct Query<T>(pub T);
-#[async_trait]
impl<T, S> FromRequestParts<S> for Query<T>
where
T: DeserializeOwned,
@@ -187,7 +185,6 @@ impl std::error::Error for QueryRejection {
#[derive(Debug, Clone, Copy, Default)]
pub struct OptionalQuery<T>(pub Option<T>);
-#[async_trait]
impl<T, S> FromRequestParts<S> for OptionalQuery<T>
where
T: DeserializeOwned,