eyre-rs / eyre

A trait object based error handling type for easy idiomatic error handling and reporting in Rust applications
Apache License 2.0
1.41k stars 68 forks source link

Support format arguments capture #66

Closed x-hgg-x closed 2 years ago

x-hgg-x commented 2 years ago

Closes #64.

Based on dtolnay/anyhow#180, dtolnay/anyhow#184 and dtolnay/anyhow#185, with the fixes from dtolnay/anyhow#183 and dtolnay/anyhow#187.

Note: like for anyhow 1.0.46, this is potentially a breaking change: the macro eyre! no more accepts a literal parameter other than a string literal as the first parameter. The workaround is to wrap the parameter with parentheses or curly braces.

yaahc commented 2 years ago

Thank you for this! I'll cut a release with it right now.