2 releases
0.1.1 | Sep 29, 2023 |
---|---|
0.1.0 | Sep 29, 2023 |
#7 in #soft
3KB
.expect
but exit instead of panic
Example usage
use expect_soft::ExpectSoft;
use std::fs;
fn main() {
fs::read_to_string("./readme.md").expect_soft("readme.md does not exist!");
}