google-cloud-rust icon indicating copy to clipboard operation
google-cloud-rust copied to clipboard

Prefer to return `Result<(), Error>` over `Option<Error>`

Open dbolduc opened this issue 7 months ago • 0 comments

Returning a Result is more idiomatic. Results are easier to chain with ?.

We should change

  • PollingErrorPolicy::on_in_progress()
  • RetryPolicy::on_throttle()

Note that these fns are hidden from our docs, and thus not part of our public API.

dbolduc avatar May 30 '25 19:05 dbolduc