mirror of
https://github.com/TrueLayer/reqwest-middleware.git
synced 2024-12-26 19:06:31 +00:00
Fix clippy lint.
This commit is contained in:
parent
ff0593d4c5
commit
45fc2815aa
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue