-
Notifications
You must be signed in to change notification settings - Fork 795
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
Make CI fail on clippy warnings #534
Conversation
@@ -221,7 +221,7 @@ where | |||
// Behave like python's __getattr__ (as opposed to __getattribute__) and check | |||
// for existing fields and methods first | |||
let existing = ffi::PyObject_GenericGetAttr(slf, arg); | |||
if existing == std::ptr::null_mut() { | |||
if existing.is_null() { |
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.
👍
Codecov Report
@@ Coverage Diff @@
## master #534 +/- ##
==========================================
- Coverage 87.68% 87.56% -0.12%
==========================================
Files 65 65
Lines 3443 3443
==========================================
- Hits 3019 3015 -4
- Misses 424 428 +4
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #534 +/- ##
=======================================
Coverage 87.56% 87.56%
=======================================
Files 65 65
Lines 3443 3443
=======================================
Hits 3015 3015
Misses 428 428
Continue to review full report at Codecov.
|
@@ -234,6 +234,7 @@ impl<'p> Python<'p> { | |||
} | |||
|
|||
/// Register `ffi::PyObject` pointer in release pool | |||
#[allow(clippy::wrong_self_convention)] |
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.
I'd like to eventually rename and and move those functions, but for now that's fine.
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 for fixing the remaining warnings!
Fix or ignore all current clippy warnings and let the CI fail if in the future if there are warnings.