Skip to content

Commit d715e22

Browse files
committed
update
1 parent e5a7444 commit d715e22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

axum-extra/src/either.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,12 @@ macro_rules! impl_traits_for_either {
242242

243243
async fn from_request_parts(parts: &mut Parts, state: &S) -> Result<Self, Self::Rejection> {
244244
$(
245-
if let Ok(value) = $ident::from_request_parts(parts, state).await {
245+
if let Ok(value) = <$ident as FromRequestParts<S>>::from_request_parts(parts, state).await {
246246
return Ok(Self::$ident(value));
247247
}
248248
)*
249249

250-
$last::from_request_parts(parts, state).await.map(Self::$last)
250+
<$last as FromRequestParts<S>>::from_request_parts(parts, state).await.map(Self::$last)
251251
}
252252
}
253253

0 commit comments

Comments
 (0)