mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-16 08:54:01 -05:00
[PR #7200] [MERGED] Switch to Edition 2024, more clippy lints, and less macro calls #23430
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/7200
Author: @BlackDex
Created: 5/8/2026
Status: ✅ Merged
Merged: 5/17/2026
Merged by: @dani-garcia
Base:
main← Head:edition-2024-and-other-stuff📝 Commits (3)
83317d9Update to Rust 2024 Editionb3861e8Reorder and merge imports95c413dRemove "db_run!" macro calls where possible📊 Changes
61 files changed (+3337 additions, -3072 deletions)
View changed files
📝
Cargo.toml(+114 -55)📝
build.rs(+4 -6)📝
macros/src/lib.rs(+5 -4)📝
rustfmt.toml(+1 -1)📝
src/api/admin.rs(+64 -69)📝
src/api/core/accounts.rs(+73 -77)📝
src/api/core/ciphers.rs(+108 -114)📝
src/api/core/emergency_access.rs(+28 -24)📝
src/api/core/events.rs(+54 -60)📝
src/api/core/folders.rs(+5 -4)📝
src/api/core/mod.rs(+48 -38)📝
src/api/core/organizations.rs(+134 -132)📝
src/api/core/public.rs(+60 -63)📝
src/api/core/sends.rs(+34 -32)📝
src/api/core/two_factor/authenticator.rs(+11 -11)📝
src/api/core/two_factor/duo.rs(+16 -17)📝
src/api/core/two_factor/duo_oidc.rs(+21 -23)📝
src/api/core/two_factor/email.rs(+20 -20)📝
src/api/core/two_factor/mod.rs(+14 -21)📝
src/api/core/two_factor/protected_actions.rs(+16 -10)...and 41 more files
📄 Description
db_run!macro calls. While this doesn't seem to provide any speed in compiling, it does make that code now being able to be formatted usingcargo fmt._which are really used, in Rust an_should only be used if that function or variable is not used, or should be ignored but is needed for some reason, like we do sometimes to apply HTTP Guards, but never use those guards inside the function it self.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #7200] WIP: Edition 2024 and other stuffto [PR #7200] [MERGED] Switch to Edition 2024, more clippy lints, and less macro calls