fix: TypedPath conflicts with OptionalFromRequestParts (#3645)

This commit is contained in:
3moredays
2026-04-03 08:49:48 +02:00
committed by Alice Ryhl
parent 39a302e874
commit 6fd77f82ca
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -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