We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5a7444 commit d715e22Copy full SHA for d715e22
axum-extra/src/either.rs
@@ -242,12 +242,12 @@ macro_rules! impl_traits_for_either {
242
243
async fn from_request_parts(parts: &mut Parts, state: &S) -> Result<Self, Self::Rejection> {
244
$(
245
- if let Ok(value) = $ident::from_request_parts(parts, state).await {
+ if let Ok(value) = <$ident as FromRequestParts<S>>::from_request_parts(parts, state).await {
246
return Ok(Self::$ident(value));
247
}
248
)*
249
250
- $last::from_request_parts(parts, state).await.map(Self::$last)
+ <$last as FromRequestParts<S>>::from_request_parts(parts, state).await.map(Self::$last)
251
252
253
0 commit comments