Skip to content

Fix or suppress warnings and format code #259

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

Merged
merged 3 commits into from
Mar 5, 2021
Merged

Conversation

markbt
Copy link
Collaborator

@markbt markbt commented Mar 5, 2021

Fix or suppress all warnings, including clippy lints. A new make clippy target is added to run clippy.

Reformat using the latest versions of rustfmt.

There were some formatting conflicts caused by the commented out prototypes in the sys crates. I have switched these to using an ignore! macro so that they can be formatted better, and also makes it clearer what's happening.

markbt added 3 commits March 5, 2021 12:20
Commented out signatures don't play so nicely with rustfmt.  Make it
clearer which bits of the Python API we are ignoring by using an
`ignore!` macro.
`const_fn` is available in the MSRV 1.41.1, so make this the default.
@markbt
Copy link
Collaborator Author

markbt commented Mar 5, 2021

With this in place, the only warning is in nightly where specialization warns that it is incomplete. Unfortunately min_specialization doesn't provide what we need, so we will have to live with that.

If there are no objections, I will merge this and my other PRs and make a 0.6 release soon.

@dgrunwald
Copy link
Owner

I had a cursory look at your PRs and have no objections.

@markbt markbt merged commit b63d691 into dgrunwald:master Mar 5, 2021
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