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

fix: Address clippy lint warnings. #742

Merged
merged 1 commit into from
Aug 17, 2022
Merged

Conversation

tsh56
Copy link
Contributor

@tsh56 tsh56 commented Aug 16, 2022

Description

This addresses clippy lint warnings that appeared with the 1.63.0 release of rust. Most of the changes are reasonable and straight forward. I'm unsure about the best way to resolve python/src/lib.rs. I whitelisted the check, as py03 wants pymethods to have parameters with known sizes as compile time.

Related Issue(s)

Documentation

https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref

@@ -236,7 +236,8 @@ impl Vacuum {
});
}

return plan.execute(table).await;
//return plan.execute(table).await;
Copy link
Member

Choose a reason for hiding this comment

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

looks like this should be deleted

@@ -1,4 +1,5 @@
#![deny(warnings)]
#![allow(clippy::borrow_deref_ref)]
Copy link
Member

Choose a reason for hiding this comment

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

curious which line is violating this error? we should probably fix that instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The issue is directly related to pyo3. There's already a ticket filed, and it appears to be fixed in main. Once the fixed is release this clippy exception shouldn't be necessary.

Copy link
Collaborator

@fvaleye fvaleye Aug 17, 2022

Choose a reason for hiding this comment

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

As a follow-up, could you please add an issue to remind us to remove this clippy exception later?

Copy link
Member

Choose a reason for hiding this comment

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

Second to what @fvaleye said, would be good to add a follow up issue on github. Also a good practice to add comment in the code for temp workarounds that we plan to remove in the future.

Copy link
Collaborator

@fvaleye fvaleye left a comment

Choose a reason for hiding this comment

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

LGTM!

Thanks @tsh56

@tsh56
Copy link
Contributor Author

tsh56 commented Aug 17, 2022

I don't believe I have merge privileges for this repo. I'm happy for someone else to perform the merge.

@fvaleye
Copy link
Collaborator

fvaleye commented Aug 17, 2022

Let me do it for you!

@fvaleye fvaleye merged commit 8845334 into delta-io:main Aug 17, 2022
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.

Lint Errors with latest Rust tools
3 participants