HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by m00dy | Hacker News Reader
Full thread
m00dy
·
I only use unwrap in tests
View on HN
Hamuko
·
I use expect() so that I can grep for instances of "unwrap()" after the prototyping phase without getting tests.
theodorton
·
You can add
[lints.clippy] unwrap_used = "deny"
to Cargo.toml if you want to avoid unwrap and then explicitly opt-in with #[allow(clippy::unwrap_used)]
Reply on news.ycombinator.com