Fix clippy lint. (#23)

This commit is contained in:
Luca Palmieri 2021-12-06 16:06:23 +00:00 committed by GitHub
parent ff0593d4c5
commit 525f62039f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ impl<T: RetryPolicy + Send + Sync> RetryTransientMiddleware<T> {
&'a self, &'a self,
req: Request, req: Request,
next: Next<'a>, next: Next<'a>,
mut ext: &'a mut Extensions, ext: &'a mut Extensions,
n_past_retries: u32, n_past_retries: u32,
) -> futures::future::BoxFuture<'a, Result<Response>> { ) -> futures::future::BoxFuture<'a, Result<Response>> {
Box::pin(async move { Box::pin(async move {
@ -97,7 +97,7 @@ impl<T: RetryPolicy + Send + Sync> RetryTransientMiddleware<T> {
let cloned_next = next.clone(); let cloned_next = next.clone();
let result = next.run(req, &mut ext).await; let result = next.run(req, ext).await;
// We classify the response which will return None if not // We classify the response which will return None if not
// errors were returned. // errors were returned.