diff options
Diffstat (limited to 'axum-extra/src/extract/optional_path.rs')
-rw-r--r-- | axum-extra/src/extract/optional_path.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/axum-extra/src/extract/optional_path.rs b/axum-extra/src/extract/optional_path.rs index 9bbd9db4..5824e600 100644 --- a/axum-extra/src/extract/optional_path.rs +++ b/axum-extra/src/extract/optional_path.rs @@ -1,5 +1,4 @@ use axum::{ - async_trait, extract::{path::ErrorKind, rejection::PathRejection, FromRequestParts, Path}, RequestPartsExt, }; @@ -35,7 +34,6 @@ use serde::de::DeserializeOwned; #[derive(Debug)] pub struct OptionalPath<T>(pub Option<T>); -#[async_trait] impl<T, S> FromRequestParts<S> for OptionalPath<T> where T: DeserializeOwned + Send + 'static, |