mobilecoinofficial / auxin

Developer friendly wrapper around the Signal Messenger protocol.
GNU Affero General Public License v3.0
8 stars 7 forks source link

Fix various clippy warnings, typos, formatting, and other minor nits #38

Closed DianaNites closed 2 years ago

DianaNites commented 2 years ago

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

DianaNites commented 2 years ago

unwrap_or isnt deprecated, but clippy prefers unwrap_or_else for when the thing you're oring 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