-
Notifications
You must be signed in to change notification settings - Fork 1.9k
chore: enforce clippy::allow_attributes for datafusion-ffi crate #19480
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
Conversation
Jefffrey
left a comment
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.
It seems surprising to me that we can just remove #[allow(non_camel_case_types)] and clippy doesn't complain 🤔
Seems like the non_camel_case_types is default allowed in our project 🫨 |
|
Thanks @chakkk309 |
|
@chakkk309 something interesting is that the CI passes, but my Rust Analyzer still complains about the lint 🤔 I wonder if we should roll this back Edit: or is it only on my machine? For reference I'm using Helix, would be good to see if others face this issue |
I'm looking into this more, it seems a bug with how |
|
Raised PR to rust analyzer: rust-lang/rust-analyzer#21374 We should keep our code as is for now (no need to rollback), since I don't think it's an issue with rustc or clippy, only rust analyzer |
|
FWIW you can disable the rust-analyzer lint (locally, or for this project) by setting rust-analyzer.diagnostics.disabled to |
TIL, thanks! |
Which issue does this PR close?
Part of #18881
Rationale for this change
Implement clippy::allow_attributes lint datafusion-ffi crate
What changes are included in this PR?
datafusion-ffi crate modified
Are these changes tested?
Yes
Are there any user-facing changes?
No