Fix clippy lint. (#23)

pull/22/head^2
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
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ impl<T: RetryPolicy + Send + Sync> RetryTransientMiddleware<T> {
&'a self,
req: Request,
next: Next<'a>,
mut ext: &'a mut Extensions,
ext: &'a mut Extensions,
n_past_retries: u32,
) -> futures::future::BoxFuture<'a, Result<Response>> {
Box::pin(async move {
@ -97,7 +97,7 @@ impl<T: RetryPolicy + Send + Sync> RetryTransientMiddleware<T> {
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
// errors were returned.