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:25:19 +08:00 committed by GitHub
parent 0e0ad984c7
commit e305bbbad1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -952,7 +952,7 @@ fn impl_enum_by_extracting_all_at_once(
req: ::axum::http::Request<::axum::body::Body>,
state: &#state,
) -> ::std::result::Result<Self, Self::Rejection> {
<#path::<#ident> as ::axum::extract::FromRequest<#trait_generics>>::from_request(req, state)
<#path::<#ident> as ::axum::extract::FromRequest<#trait_generics, _>>::from_request(req, state)
.await
.map(|#path(inner)| inner)
.map_err(#map_err)