Hacker News new | ask | show | jobs
by rainbow-road 2167 days ago
Yep. I'm pretty sure that even with unsafe shenanigans, you can't access the value without being very explicit about it. You'd need something like:

    let value = unsafe {
        match result {
            Ok(value) => value,
            _ => hint::unreachable_unchecked()
        }
    };
At this point, the fact that you've skipped an error check should be abundantly clear to anyone reading your code.