Crates.io | expect_soft |
lib.rs | expect_soft |
version | 0.1.1 |
source | src |
created_at | 2023-09-29 16:14:52.682771 |
updated_at | 2023-09-29 16:17:24.120395 |
description | .expect but exit instead of panic |
homepage | |
repository | https://github.com/modtk/expect_soft |
max_upload_size | |
id | 987560 |
size | 2,448 |
.expect
but exit instead of panic
use expect_soft::ExpectSoft;
use std::fs;
fn main() {
fs::read_to_string("./readme.md").expect_soft("readme.md does not exist!");
}