Skip to content

Conversation

KodrAus
Copy link
Contributor

@KodrAus KodrAus commented Jan 10, 2020

Hi! 👋

I'm spending some time poking around and thought I'd submit a few PRs for bits and pieces.

This PR refactors the top-level Error enum so that it's an opaque struct instead of an open enum. This means changes can be made to the internals of the error without breaking callers relying on the enum having a particular shape. As an example of a change, one day we might want to replace the Lib(String) variant with something strongly typed. It also means a Backtrace could be introduced, because it'll have a natural place to live within the struct.

@russcam
Copy link
Contributor

russcam commented Jan 10, 2020

Thanks for the PR, @KodrAus 👍

Copy link
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

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

LGTM 👍

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