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

rust 1.50: clippy and lint fixes #1422

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

davidhewitt
Copy link
Member

No description provided.

@@ -10,15 +10,15 @@ use std::os::raw::c_int;
#[derive(Debug)]
pub enum PyMethodDefType {
/// Represents class `__new__` method
New(PyMethodDef),
New(PyMethodDef<ffi::newfunc>),
Copy link
Member Author

Choose a reason for hiding this comment

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

The changes in this module are technically breaking, but it's #[doc(hidden)] internals so I think this refactor is fine.

I did it because it removes some of the type assertions from runtime to compile time, which can only be a good thing for performance 🚀

Copy link
Member Author

@davidhewitt davidhewitt Feb 12, 2021

Choose a reason for hiding this comment

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

I decided this was fine to merge before the patch release based on comment by dtolnay here: https://www.reddit.com/r/rust/comments/ey0ul0/handling_breaking_api_changes/fgew8d2

@davidhewitt davidhewitt force-pushed the fixes-rust-1_50 branch 2 times, most recently from 8a55c4c to 1aaa856 Compare February 11, 2021 21:59
This was referenced Feb 11, 2021
@davidhewitt davidhewitt merged commit d148c79 into PyO3:master Feb 12, 2021
@kngwyu
Copy link
Member

kngwyu commented Feb 13, 2021

Thanks!

@davidhewitt davidhewitt deleted the fixes-rust-1_50 branch August 10, 2021 07:20
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.

2 participants