Closed DianaNites closed 2 years ago
unwrap_or
isnt deprecated, but clippy prefers unwrap_or_else
for when the thing you're or
ing to has side effects, since unwrap_or
will always call them, but unwrap_or_else
is a closure that will only be called in the "error" case. This is especially relevant if the "error" case is expensive
Alternative title: The Clippyning
Fixes various clippy warnings, typos, formatting, simplify some stuff, etc. Nothing major, but should be clippy warning free now, which is a good place to start