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

View file

@ -843,7 +843,7 @@ fn impl_struct_by_extracting_all_at_once(
req: ::axum::http::Request<::axum::body::Body>,
state: &#state,
) -> ::std::result::Result<Self, Self::Rejection> {
<#via_path<#via_type_generics> as ::axum::extract::FromRequest<#trait_generics>>::from_request(req, state)
<#via_path<#via_type_generics> as ::axum::extract::FromRequest<#trait_generics, _>>::from_request(req, state)
.await
.map(|#via_path(value)| #value_to_self)
.map_err(#map_err)