From 45fc2815aa1701547cbbdd52ad6be25a22014e48 Mon Sep 17 00:00:00 2001 From: Luca Palmieri Date: Mon, 6 Dec 2021 15:57:20 +0000 Subject: [PATCH] Fix clippy lint. --- reqwest-retry/src/middleware.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reqwest-retry/src/middleware.rs b/reqwest-retry/src/middleware.rs index 7f036ff..bdcc088 100644 --- a/reqwest-retry/src/middleware.rs +++ b/reqwest-retry/src/middleware.rs @@ -81,7 +81,7 @@ impl RetryTransientMiddleware { &'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> { Box::pin(async move { @@ -97,7 +97,7 @@ impl RetryTransientMiddleware { 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.