Skip to content

Commit

Permalink
🎨 cargo fmt && cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Goodjooy committed Feb 16, 2024
1 parent 0bbc2d0 commit bf5e651
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/convert/from_request/axum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ where
Self: 'async_trait,
{
Box::pin(async {
let payload = <T::Payload as FromRequest<S>>::from_request(req, state)
<T::Payload as FromRequest<S>>::from_request(req, state)
.await
.map_err(|err| RespResult::Err(E::from(err)))
.map(|data| Self(data.to_inner()));
payload
.map(|data| Self(data.to_inner()))
})
}
}
Expand Down

0 comments on commit bf5e651

Please sign in to comment.