mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-12 09:50:45 +01:00
Update axum-macros/src/from_request.rs
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
This commit is contained in:
parent
fc470ce06b
commit
8b76b09d99
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ fn extract_fields(
|
||||||
let field_ty = into_outer(&via, ty_span, peel_option(&field.ty).unwrap());
|
let field_ty = into_outer(&via, ty_span, peel_option(&field.ty).unwrap());
|
||||||
quote_spanned! {ty_span=>
|
quote_spanned! {ty_span=>
|
||||||
#member: {
|
#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
|
.await
|
||||||
.ok()
|
.ok()
|
||||||
.map(#into_inner)
|
.map(#into_inner)
|
||||||
|
|
Loading…
Reference in a new issue