1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-22 05:10:29 +01:00
vaultwarden/src
BlackDex 55d7c48b1d
Add more clippy checks for better code/readability
A bit inspired by @paolobarbolini from this commit at lettre https://github.com/lettre/lettre/pull/784 .
I added a few more clippy lints here, and fixed the resulted issues.

Overall i think this could help in preventing future issues, and maybe
even peformance problems. It also makes some code a bit more clear.

We could always add more if we want to, i left a few out which i think
arn't that huge of an issue. Some like the `unused_async` are nice,
which resulted in a few `async` removals.

Some others are maybe a bit more estatic, like `string_to_string`, but i
think it looks better to use `clone` in those cases instead of `to_string` while they already are a string.
2022-07-10 16:39:38 +02:00
..
api Add more clippy checks for better code/readability 2022-07-10 16:39:38 +02:00
db Add more clippy checks for better code/readability 2022-07-10 16:39:38 +02:00
static Fix identicons not always working 2022-06-22 16:38:16 +02:00
auth.rs Update login API code 2022-03-12 18:45:45 +01:00
config.rs Add password_hints_allowed config option 2022-06-30 20:46:17 -07:00
crypto.rs Increase length limit for email token generation 2022-01-24 01:17:00 -08:00
error.rs Migrate old ws crate to tungstenite, which is async and also removes over 20 old dependencies 2022-06-04 19:13:39 +02:00
mail.rs Upgrade dependencies and swap lettre to async transport 2022-07-06 23:57:37 +02:00
main.rs Add more clippy checks for better code/readability 2022-07-10 16:39:38 +02:00
ratelimit.rs Basic ratelimit for user login (including 2FA) and admin login 2021-12-22 21:48:49 +01:00
util.rs Add more clippy checks for better code/readability 2022-07-10 16:39:38 +02:00