-
Notifications
You must be signed in to change notification settings - Fork 9
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
style: fix Rust 1.75 lints #291
Conversation
Also manually fix up some cfg(test) confusion it got confused by.
Some tests with 'continue-on-error: true' have failed:
Created by continue-on-error-comment |
@@ -1,7 +1,6 @@ | |||
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. | |||
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2023-Present Datadog, Inc. | |||
|
|||
#[cfg(test)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove this cfg
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The includes are guarded by cfg(test)
instead. This fixes unused import warnings in non-test. Having both cfg
s seemed pointlessly redundant.
What does this PR do?
This fixes a series of lints that now show up due to Rust 1.75's release.
Motivation
I opened a PR for something else and notice the lints failed.
Additional Notes
cargo clippy --fix --lib
is pretty nice, but I still had to resolve two things by hand.PROF-8862
How to test the change?
Everything should work the same. Locally, all tests still passed.
For Reviewers
@DataDog/security-design-and-guidance
.