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.
- Posts
- 0
- Comments
- 102
- Joined
- 3 yr. ago
- Posts
- 0
- Comments
- 102
- Joined
- 3 yr. ago
Vacuum cube