Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra linting #4977

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Conversation

BlackDex
Copy link
Collaborator

@BlackDex BlackDex commented Sep 21, 2024

Added extra linting for some code styles.
Also added some of the Rust Edition 2024 lints since our MSRV does not yet support the group lint.
Once we reach 1.81.0 as MSRV we can uncomment it and use that lint.

Closes #4974

Added extra linting for some code styles.
Also added the Rust Edition 2024 lints.

Closes dani-garcia#4974

Signed-off-by: BlackDex <black.dex@gmail.com>
@BlackDex
Copy link
Collaborator Author

Hmm, looks like our MSRV doesn't allow those lints yet.

@BlackDex
Copy link
Collaborator Author

Only available since v1.81.0 it looks like.

@BlackDex
Copy link
Collaborator Author

i Could comment it out for now and enable it once we are there, and leave the rest as-is.

Copy link
Owner

@dani-garcia dani-garcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can comment that edition_2024_expr_fragment_specifier out until we bump the MSRV in two months yeah.

src/api/core/accounts.rs Outdated Show resolved Hide resolved
Signed-off-by: BlackDex <black.dex@gmail.com>
@dani-garcia dani-garcia merged commit 040e2a7 into dani-garcia:main Sep 23, 2024
5 checks passed
@BlackDex BlackDex deleted the update-lints-and-code branch September 23, 2024 18:26
BlackDex added a commit to BlackDex/vaultwarden that referenced this pull request Oct 5, 2024
* Add extra linting

Added extra linting for some code styles.
Also added the Rust Edition 2024 lints.

Closes dani-garcia#4974

Signed-off-by: BlackDex <black.dex@gmail.com>

* Adjusted according to comments

Signed-off-by: BlackDex <black.dex@gmail.com>

---------

Signed-off-by: BlackDex <black.dex@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rust 2024 breaking changes
2 participants