From d852327118f081c427f1f0dfe72a69d789c31a76 Mon Sep 17 00:00:00 2001 From: Kyle Huey Date: Fri, 12 May 2023 06:44:37 -0700 Subject: [PATCH] Make building without the `retry` feature work. --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 80b3590c..5ac622bc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -211,6 +211,7 @@ use crate::error::{ use crate::service::middleware::base_uri::BaseUriLayer; use crate::service::middleware::extra_headers::ExtraHeadersLayer; +#[cfg(feature = "retry")] use crate::service::middleware::retry::RetryConfig; use auth::{AppAuth, Auth}; @@ -444,6 +445,7 @@ impl OctocrabBuilder { } impl OctocrabBuilder { + #[cfg(feature = "retry")] pub fn add_retry_config(&mut self, retry_config: RetryConfig) -> &mut Self { self.config.retry_config = retry_config; self