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 (XAMPPRocky#643)
  • Loading branch information
davidsow authored and dmgorsky committed Jun 14, 2024
1 parent 3145a33 commit b70c087
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 b70c087

Please sign in to comment.