XAMPPRocky / octocrab

A modern, extensible GitHub API Client for Rust.
Other
1.07k stars 261 forks source link

Builder add_retry_config requires intermediate variable binding #642

Closed davidsow closed 3 months ago

davidsow commented 4 months ago

Currently the add_retry_config function of OctocrabBuilder is defined with a different function signature than the others, requiring the builder to be bound to an intermediate variable before building to prevent move issues in the borrow checker.

I can't find any public usages of this function on GitHub, so I believe this odd behavior has gone unnoticed since the function was added.

cc @L1ghtman2k (we spoke about this offline)

Example usage: image