Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Error implement std::fmt::Display, std::error::Error and Sync #47

Merged
merged 3 commits into from
Mar 13, 2023

Conversation

hkratz
Copy link
Contributor

@hkratz hkratz commented Mar 2, 2023

This is necessary to make it work with error-wrapping libraries like anyhow or eyre. Of course it is also generally a good idea. ;-)

Please check if the error descriptions in the Display implementation are to your liking. The impl<E> From<E> for Error is unused and conflicts with Error implementing std::error::Error so I removed it.

@hkratz
Copy link
Contributor Author

hkratz commented Mar 2, 2023

The CI failure seems to be unrelated.

Copy link
Contributor

@cwaldren-ld cwaldren-ld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Just a couple comments.

eventsource-client/src/error.rs Outdated Show resolved Hide resolved
eventsource-client/src/error.rs Outdated Show resolved Hide resolved
eventsource-client/src/error.rs Outdated Show resolved Hide resolved
@cwaldren-ld
Copy link
Contributor

cwaldren-ld commented Mar 3, 2023

Hi @hkratz sorry for the delay; needed to fix CI on main branch. Please rebase your branch and hopefully it's good to go.

@cwaldren-ld cwaldren-ld merged commit 0eaab6e into launchdarkly:main Mar 13, 2023
This was referenced Nov 15, 2023
keelerm84 pushed a commit that referenced this pull request Nov 15, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.12.0](0.11.0...0.12.0)
(2023-11-15)


### ⚠ BREAKING CHANGES

* Remove re-export of hyper_rustls types
([#59](#59))
* Bump dependencies
([#58](#58))

### deps

* Bump dependencies
([#58](#58))
([a7174e3](a7174e3))


### Features

* make Error implement std::fmt::Display, std::error::Error` and Sync
([#47](#47))
([0eaab6e](0eaab6e))


### Bug Fixes

* Remove re-export of hyper_rustls types
([#59](#59))
([ec24970](ec24970))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants