arlyon / async-stripe

Async (and blocking!) Rust bindings for the Stripe API
https://payments.rs
Apache License 2.0
454 stars 129 forks source link

fix: Remove "Some()" from RequestError's display #510

Closed paul-hansen closed 7 months ago

paul-hansen commented 7 months ago

The Display implementation for RequestError previously was:

invalid_request_error (400) with message: Some("Product already exists.")
invalid_request_error (400) with message: None

This PR changes it to:

invalid_request_error (400) with message: "Product already exists."
invalid_request_error (400)

Goal is to be shorter and look a bit friendlier.

Thanks for this library! Lmk if you'd like any changes (or edits by maintainers is also enabled).

arlyon commented 7 months ago

Nice! I am running CI for the ritual and will release when it is in :)