Compare commits

...

1 Commits

Author SHA1 Message Date
Luca Palmieri 45fc2815aa Fix clippy lint. 2021-12-06 15:57:20 +00:00
1 changed files with 2 additions and 2 deletions

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.