Update axum-macros/src/from_request.rs

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
This commit is contained in:
Zheng Li 2024-09-28 18:24:48 +08:00 committed by GitHub
parent fc470ce06b
commit 8b76b09d99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)