From 6fdc6773f8ffdfadf9e74c63781b5e3d3a72c72e Mon Sep 17 00:00:00 2001 From: Ethan Brierley Date: Wed, 28 Aug 2024 22:37:11 +0100 Subject: [PATCH] Revert "Code review suggestions" This reverts commit 211a6dea9f09195f4b9e4e89727d9006b547ae15. --- reqwest-middleware/Cargo.toml | 1 - reqwest-retry/src/middleware.rs | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/reqwest-middleware/Cargo.toml b/reqwest-middleware/Cargo.toml index e737723..0a6c618 100644 --- a/reqwest-middleware/Cargo.toml +++ b/reqwest-middleware/Cargo.toml @@ -15,7 +15,6 @@ multipart = ["reqwest/multipart"] json = ["reqwest/json"] charset = ["reqwest/charset"] http2 = ["reqwest/http2"] -rustls-tls = ["reqwest/rustls-tls"] [dependencies] anyhow = "1.0.0" diff --git a/reqwest-retry/src/middleware.rs b/reqwest-retry/src/middleware.rs index fed9aae..66daec6 100644 --- a/reqwest-retry/src/middleware.rs +++ b/reqwest-retry/src/middleware.rs @@ -71,7 +71,7 @@ pub struct RetryTransientMiddleware< retry_policy: T, retryable_strategy: R, #[cfg(feature = "tracing")] - retry_log_level: tracing::Level, + retry_log_level: ::tracing::Level, } impl RetryTransientMiddleware { @@ -83,7 +83,7 @@ impl RetryTransientMiddleware Self { + pub fn with_retry_log_level(mut self, level: ::tracing::Level) -> Self { self.retry_log_level = level; self } @@ -100,7 +100,7 @@ where retry_policy, retryable_strategy, #[cfg(feature = "tracing")] - retry_log_level: tracing::Level::WARN, + retry_log_level: ::tracing::Level::WARN, } } }