5 ms·
If your function is fallible, your function is fallible - it's up to you to decide whether that means returning Result or panicking. If you want your function
by mcronce 4y ago
If your function is fallible, your function is fallible - it's up to you to decide whether that means returning Result or panicking. If you want your function to be infallible, while itself calling a fallible function, you have to handle the error cases from your callees - you have `.unwrap_or_default()`, `.unwrap_or_else()`, `.unwrap_or()`, and simple `match` all in your toolbox to do this.