You need to unwrap but the compiler removes the call. If instead you know that the callee is infallible you can also do
let Ok(x) = call_that_cant_fail(); let Ok(x) = call_that_cant_fail();No comments yet.