average-vr-56795
05/31/2018, 9:16 AMFrom stuff is coolest for error types with the ? operator:
fn do_something() -> Result<String, String> {
Err("foo".to_owned())
}
fn foo() -> Result<String, MyError> {
do_something()?
}
will Just Work with no .into() call because the ? operator will automatically call .into() if needed