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

chore: address Rust 1.72 clippy lints #2011

Merged
merged 13 commits into from
Aug 28, 2023
Merged

chore: address Rust 1.72 clippy lints #2011

merged 13 commits into from
Aug 28, 2023

Conversation

SanchithHegde
Copy link
Member

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

This PR addresses a clippy lint stabilized in Rust 1.72.

Motivation and Context

N/A

How did you test it?

N/A

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible
  • I added a CHANGELOG entry if applicable

@SanchithHegde SanchithHegde added S-waiting-on-review Status: This PR has been implemented and needs to be reviewed C-refactor Category: Refactor labels Aug 24, 2023
@SanchithHegde SanchithHegde self-assigned this Aug 24, 2023
lsampras
lsampras previously approved these changes Aug 24, 2023
@@ -1,4 +1,4 @@
[target.'cfg(all())']
[build]
Copy link
Member Author

Choose a reason for hiding this comment

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

With [target.'cfg(all())'], all allowed lints (such as as conversions, missing panics docs, etc.) were somehow still raising warnings.

I'm not sure if there are any cons of using the build table for this purpose, I'll raise this issue on EmbarkStudios/rust-ecosystem#59, will update this as required.

ArjunKarthik
ArjunKarthik previously approved these changes Aug 24, 2023
@SanchithHegde
Copy link
Member Author

Weird enough, I'm able to get this to pass clippy checks on my machine, even tried checking out the exact commit being checked out on CI. 🤔

lsampras
lsampras previously approved these changes Aug 25, 2023
@lsampras lsampras removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Aug 25, 2023
@SanchithHegde SanchithHegde marked this pull request as draft August 25, 2023 05:23
ashokkjag
ashokkjag previously approved these changes Aug 25, 2023
@lsampras lsampras marked this pull request as ready for review August 25, 2023 08:52
Merged via the queue into main with commit eaefa6e Aug 28, 2023
13 of 14 checks passed
@SanchithHegde SanchithHegde deleted the clippy-1.72 branch August 28, 2023 19:10
lsampras added a commit that referenced this pull request Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-refactor Category: Refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants