6 ms·
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();
by bonzini 4d ago
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();