Skip to content

Commit a39a4fc

Browse files
committed
fix: call FromRequestParts impl for Path to avoid conflict with OptionalFromRequestParts (#3644)
1 parent 0dc7a05 commit a39a4fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

axum-macros/src/typed_path.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ fn expand_named_fields(
149149
parts: &mut ::axum::http::request::Parts,
150150
state: &S,
151151
) -> ::std::result::Result<Self, Self::Rejection> {
152-
::axum::extract::Path::from_request_parts(parts, state)
152+
<::axum::extract::Path<#ident> as ::axum::extract::FromRequestParts<S>>
153+
::from_request_parts(parts, state)
153154
.await
154155
.map(|path| path.0)
155156
#map_err_rejection

0 commit comments

Comments
 (0)