ThinkAlexandria / BoringAuth

Straightforward password, passphrase, TOTP, and HOTP user authentication
Other
55 stars 9 forks source link

Apply clippy lints #4

Closed hellow554 closed 5 years ago

hellow554 commented 5 years ago

A lot of these are QOL improvements, e.g. you don't have to use a String anymore, but instead a &str can be used now (same goes for Vec vs &[_]). Now you don't need an owned value anymore, which is very convenient.

The rest are general clippy lints, e.g. usingu32::from instead of as 32, or using is_empty instead of .len == 0