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

Fixes problem with lint warnings in different versions of Rust. #424

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

Superhepper
Copy link
Collaborator

  • The crate supports several different versions of rust and in some of these versions the Clippy lint tool introduces new warnings that are not present in previous versions of rust. This causes a warning when compiling. This has been fixed in this commit by using the rustversion crate to only add the lint if the crate is being built with a version of Rust that has it.

@Superhepper Superhepper marked this pull request as ready for review July 30, 2023 10:11
@wiktor-k
Copy link
Collaborator

Looks good. 👍

I think it would be good to have an actual CI job that'd use the oldest version of Rust compiler that we support thus verifying that this change does what it claims to do.

(Or maybe it is already implemented... can't quickly check on mobile 😔)

@Superhepper
Copy link
Collaborator Author

I have already made a MSRV job. It is one of the checks that must be ok before you can merge a PR.

Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

👍🏻

- The crate supports several different versions of rust and in some of
  these versions the Clippy lint tool introduces new warnings that are
  not present in previous versions of rust. This causes a warning when
  compiling. This has been fixed in this commit by using the
  `rustversion` crate to only add the lint if the crate is being built
  with a version of Rust that has it.

Signed-off-by: Jesper Brynolf <[email protected]>
Copy link
Collaborator

@wiktor-k wiktor-k left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@wiktor-k wiktor-k merged commit 750f1d9 into parallaxsecond:main Aug 3, 2023
10 checks passed
@Superhepper Superhepper deleted the lint-problems branch December 16, 2023 08:59
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.

3 participants