minus-squaredarvit@lemmy.darvit.nltoProgrammer Humor@programming.dev•;DR blame the devlinkfedilinkarrow-up1·2 days agoFor my own Rust project I require myself to have a comment for every unwrap call that explains why that unwrap will never panic. For everything else I let the function return an error, with help of the anyhow crate and error contexts. linkfedilink
For my own Rust project I require myself to have a comment for every unwrap call that explains why that unwrap will never panic. For everything else I let the function return an error, with help of the anyhow crate and error contexts.