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

Consider providing format_err! as an alias for anyhow! #37

Closed
joshtriplett opened this issue Nov 2, 2019 · 3 comments · Fixed by #38
Closed

Consider providing format_err! as an alias for anyhow! #37

joshtriplett opened this issue Nov 2, 2019 · 3 comments · Fixed by #38

Comments

@joshtriplett
Copy link

The anyhow crate works very well as a drop-in substitute for failure. One notable API difference: the anyhow crate uses anyhow! instead of format_err!. format_err! seems like a more self-explanatory and generic name, and one more suited to #13 in the future as well. Would you consider providing format_err! as an equivalent to anyhow!?

@dtolnay
Copy link
Owner

dtolnay commented Nov 2, 2019

Sure thing, I agree that's likely the name this would be given if it were going into std.

@dtolnay
Copy link
Owner

dtolnay commented Nov 2, 2019

Added in 1.0.19.

@joshtriplett
Copy link
Author

Thanks!

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 a pull request may close this issue.

2 participants