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

View file

@ -866,7 +866,7 @@ fn impl_struct_by_extracting_all_at_once(
parts: &mut ::axum::http::request::Parts,
state: &#state,
) -> ::std::result::Result<Self, Self::Rejection> {
<#via_path<#via_type_generics> as ::axum::extract::FromRequestParts<#trait_generics>>::from_request_parts(parts, state)
<#via_path<#via_type_generics> as ::axum::extract::FromRequestParts<#trait_generics, _>>::from_request_parts(parts, state)
.await
.map(|#via_path(value)| #value_to_self)
.map_err(#map_err)