mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
fix: TypedPath conflicts with OptionalFromRequestParts (#3645)
This commit is contained in:
@@ -144,7 +144,8 @@ fn expand_named_fields(
|
||||
parts: &mut ::axum::http::request::Parts,
|
||||
state: &S,
|
||||
) -> ::std::result::Result<Self, Self::Rejection> {
|
||||
::axum::extract::Path::from_request_parts(parts, state)
|
||||
<::axum::extract::Path<#ident> as ::axum::extract::FromRequestParts<S>>
|
||||
::from_request_parts(parts, state)
|
||||
.await
|
||||
.map(|path| path.0)
|
||||
#map_err_rejection
|
||||
|
||||
Reference in New Issue
Block a user