diff --git a/src/lib.rs b/src/lib.rs index 7f1b0be1..06c794b8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -486,18 +486,21 @@ impl OctocrabBuilder } /// Set the connect timeout. + #[cfg(feature = "timeout")] pub fn set_connect_timeout(mut self, timeout: Option) -> Self { self.config.connect_timeout = timeout; self } /// Set the read timeout. + #[cfg(feature = "timeout")] pub fn set_read_timeout(mut self, timeout: Option) -> Self { self.config.read_timeout = timeout; self } /// Set the write timeout. + #[cfg(feature = "timeout")] pub fn set_write_timeout(mut self, timeout: Option) -> Self { self.config.write_timeout = timeout; self