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

Use anyhow::Result instead of Result<_, Box<dyn Error>> #38

Merged
merged 3 commits into from
Aug 17, 2022

Conversation

morrisonlevi
Copy link
Contributor

What does this PR do?

You can't put the latter into the former, and the former can move
across thread boundaries while the latter can't (at least, I think
that's what the giant error message said).

Motivation

I hit some of these errors while using anyhow in the PHP profiler.
Since ddcommon is using the crate anyway, it seemed like we could align
here.

Additional Notes

Anything else we should know when reviewing?

How to test the change?

Describe here in detail how the change can be validated.

You can't put the latter into the former, and the former can move
across thread boundaries while the latter can't.
@morrisonlevi morrisonlevi requested review from a team as code owners August 15, 2022 19:59
Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

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

Looks reasonable!

@morrisonlevi morrisonlevi merged commit 7eed32d into main Aug 17, 2022
@morrisonlevi morrisonlevi deleted the levi/anyhow branch August 17, 2022 14:49
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.

4 participants