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.35k stars 63 forks source link

Don't evaluate 1-argument `ensure!` condition twice #166

Closed DaniPopes closed 4 months ago

DaniPopes commented 4 months ago

ensure!($cond:expr) currently expands to two nested if !$cond {}.