Skip to content

Commit

Permalink
fix(builder): Change add_retry_config signature to match others in Oc…
Browse files Browse the repository at this point in the history
…tocrabBuilder (#643)
  • Loading branch information
davidsow committed Jun 12, 2024
1 parent 82fb59a commit 0769768
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,9 @@ impl<Svc, Config, LayerState> OctocrabBuilder<Svc, Config, NoAuth, LayerState> {
}

impl OctocrabBuilder<NoSvc, DefaultOctocrabBuilderConfig, NoAuth, NotLayerReady> {
/// 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
}
Expand Down

0 comments on commit 0769768

Please sign in to comment.