Permit it!
Cute little rust library to permit errors
Lets you permit a specific error or permit conditionally for Result<(), E>.
Note that this does not work for T. This method may be chained.
Examples
use Permit;
// Attempt to create a directory, but permit the case where it already exists.
if let Err = create_dir
.permit
use Permit;
// Alternative way to permit the case where a directory already exists.
let path = from;
create_dir.permit_if.unwrap_or_else
Hint: Look at the tests in src/lib.rs for more usage examples.