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

sound: add clippy lint checks #514

Merged
merged 3 commits into from
Nov 2, 2023
Merged

Conversation

epilys
Copy link
Member

@epilys epilys commented Oct 31, 2023

Depends on #513

Summary of the PR

Add basic lints to deny unidiomatic or potentially bad code.

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR are signed (with git commit -s), and the commit
    message has max 60 characters for the summary and max 75 characters for each
    description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

A subtraction between unsigned integers is made, which by default panics
on overflow. However, we don't really need to know the difference, only
that it is not zero or less.

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Suggested by lint https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Add basic lints to deny unidiomatic or potentially bad code.

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
@vireshk vireshk merged commit 90f547e into rust-vmm:main Nov 2, 2023
2 checks passed
@vireshk
Copy link
Collaborator

vireshk commented Nov 2, 2023

@stefano-garzarella @stsquad

I managed to screw up and merge this without approval from you guys. I was trying to enable auto-merge only :(

Can you guys please check the pull request again and see if there is something worth fixing ?

@stefano-garzarella
Copy link
Member

@stefano-garzarella @stsquad

I managed to screw up and merge this without approval from you guys. I was trying to enable auto-merge only :(

No problem, can happen ;-)

Can you guys please check the pull request again and see if there is something worth fixing ?

I left some comments that we can surely fix in another PR.
IIUC this also includes #513, so should we close it?

@vireshk
Copy link
Collaborator

vireshk commented Nov 2, 2023

Done

@epilys epilys deleted the sound-add-deny-lints branch November 2, 2023 08:58
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.

None yet

3 participants