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

Mark Report as #[must_use] #73

Merged
merged 1 commit into from Mar 30, 2022
Merged

Mark Report as #[must_use] #73

merged 1 commit into from Mar 30, 2022

Conversation

phil-opp
Copy link
Contributor

Not using the error type after construction is a common mistake. This can also easily happen with the provided macros, when using eyre! instead of eyre::bail!. By marking the type as #[must_use], the compiler warns us in such cases.

Not using the error type after construction is a common mistake. This can also easily happen with the provided macros, when using `eyre!` instead of `eyre::bail!`. By marking the type as `#[must_use]`, the compiler warns us in such cases.
@yaahc yaahc merged commit 4f96615 into eyre-rs:master Mar 30, 2022
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.

None yet

2 participants