-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix: cargo warnings of import item #10196
Conversation
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
@@ -77,7 +77,7 @@ jobs: | |||
run: cargo check --all-targets --no-default-features -p datafusion-functions | |||
|
|||
- name: Check workspace in debug mode | |||
run: cargo check | |||
run: cargo check --all-targets --workspace |
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.
This should cover test modules
@@ -130,3 +130,6 @@ rpath = false | |||
[workspace.lints.clippy] | |||
# Detects large stack-allocated futures that may cause stack overflow crashes (see threshold in clippy.toml) | |||
large_futures = "warn" | |||
|
|||
[workspace.lints.rust] | |||
unused_imports = "deny" |
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.
Deny unused import warning. Unfortunately, cargo check
doesn't support things like -D warning
at present rust-lang/cargo#8424
Signed-off-by: Ruihang Xia <[email protected]>
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.
Thank you @waynexia -- looks like a great clean up to me
Signed-off-by: Ruihang Xia <[email protected]>
* fix: cargo warnings of import item Signed-off-by: Ruihang Xia <[email protected]> * deny unused imports Signed-off-by: Ruihang Xia <[email protected]> * allow util macro re-export Signed-off-by: Ruihang Xia <[email protected]> * lift windows target feature gate to mod level Signed-off-by: Ruihang Xia <[email protected]> --------- Signed-off-by: Ruihang Xia <[email protected]>
Which issue does this PR close?
Closes #.
Rationale for this change
I found there are many warnings in the project. It looks like we don't run "cargo check" for (a large number of) test modules.
The majority kinds are
super::*
orxx::prelude::*
What changes are included in this PR?
unused_imports
inCargo.toml
Are these changes tested?
N/A
Are there any user-facing changes?
N/A