diff --git a/src/lib.rs b/src/lib.rs index b501195b..8051cc17 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -498,8 +498,9 @@ impl OctocrabBuilder { } impl OctocrabBuilder { + /// Set the retry configuration #[cfg(feature = "retry")] - pub fn add_retry_config(&mut self, retry_config: RetryConfig) -> &mut Self { + pub fn add_retry_config(mut self, retry_config: RetryConfig) -> Self { self.config.retry_config = retry_config; self }