Skip to content

Fixed several clippy warnings #448

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 18 commits into from
Feb 12, 2019

Conversation

ZapAnton
Copy link
Contributor

@ZapAnton ZapAnton commented Feb 12, 2019

This PR fixed the last batch of the simple clippy warnings.

The remaining warnings deal with the basic types representation and API, which potentially introduces breaking changes, therefore they will be dealt with in the separate PRs

@@ -127,6 +128,10 @@ impl<T: Clone> PySliceableSequence for Vec<T> {
fn len(&self) -> usize {
self.len()
}

fn is_empty(&self) -> bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

This probably is an infinite recursion?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Given how len is implemented I doubt it, but, just in case, perhaps some turbofish could be used here to call the real method?

@windelbouwman windelbouwman merged commit 2645bfd into RustPython:master Feb 12, 2019
@ZapAnton ZapAnton deleted the fix_clippy_warnings branch February 12, 2019 16:22
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