Skip to content

Make ParseError a std::error::Error #332

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

Merged
merged 1 commit into from
Apr 27, 2023
Merged

Make ParseError a std::error::Error #332

merged 1 commit into from
Apr 27, 2023

Conversation

emilio
Copy link
Member

@emilio emilio commented Apr 27, 2023

Previously the ParseError struct did not implement std::error::Error or std::fmt::Display. This meant that ParseError was not boxable into an "any error" box like anyhow::Error. This commit adds Error and Display implementations for ParseError and friends.

Rebase + MSRV fix of #298

Previously the `ParseError` struct did not implement
`std::error::Error` or `std::fmt::Display`. This meant that `ParseError`
was not boxable into an "any error" box like `anyhow::Error`. This
commit adds Error and Display implementations for ParseError and
friends.

Fixes #247
Closes #298
Closes #262
@emilio
Copy link
Member Author

emilio commented Apr 27, 2023

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit c2ca656 has been approved by emilio

@bors-servo
Copy link
Contributor

⌛ Testing commit c2ca656 with merge c49f434...

@bors-servo
Copy link
Contributor

☀️ Test successful - checks-github
Approved by: emilio
Pushing c49f434 to master...

1 similar comment
@bors-servo
Copy link
Contributor

☀️ Test successful - checks-github
Approved by: emilio
Pushing c49f434 to master...

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.

3 participants