diff --git a/axum-macros/src/from_request.rs b/axum-macros/src/from_request.rs index d176a00d..a2e38f4e 100644 --- a/axum-macros/src/from_request.rs +++ b/axum-macros/src/from_request.rs @@ -608,7 +608,7 @@ fn extract_fields( let field_ty = into_outer(&via, ty_span, peel_option(&field.ty).unwrap()); quote_spanned! {ty_span=> #member: { - <#field_ty as ::axum::extract::FromRequest<#trait_generics>>::from_request(req, state) + <#field_ty as ::axum::extract::FromRequest<#trait_generics, _>>::from_request(req, state) .await .ok() .map(#into_inner)