Skip to main content


Doing a code review today made me realize how writing safety comments in Rust is all about writing down tautologies

#RustLang

in reply to Gabriele Svelto

It's unfortunate that `unwrap` isn't const yet, that would save so many annoying and unnecessary occurrences of `unsafe`
in reply to Gabriele Svelto

There's also this https://docs.rs/nonzero_ext/0.3.0/nonzero_ext/macro.nonzero.html (it internally does the same, but you won't have to write the unsafe code)