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

Improve error handling #4

Conversation

jturner314
Copy link

This is nice because it doesn't lose information. (Returning an
`Option` combines the two error variants into a single case.)
Once the `#[non_exhaustive]` attribute is stable, we should replace
the hidden enum variant with that attribute on the enum.
}
_ => Ok(None),
}
let min = a.min()?;
Copy link
Owner

Choose a reason for hiding this comment

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

This looks way cleaner now, it's nice!

@LukeMathWalker LukeMathWalker merged commit 308e0e7 into LukeMathWalker:histogram-error-handling Apr 1, 2019
@LukeMathWalker LukeMathWalker deleted the histogram-error-handling branch April 1, 2019 07:40
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