Skip to content

new lints len_zero and len_without_is_empty #61

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

Closed
wants to merge 2 commits into from
Closed

Conversation

llogiq
Copy link
Contributor

@llogiq llogiq commented May 20, 2015

This closes #60 and at least puts #32 on hold until we can have method lookup.

@llogiq
Copy link
Contributor Author

llogiq commented May 20, 2015

@Manishearth Did you change travis to stable? The build is failing. Also my last commit can probably be reverted.

@Manishearth Manishearth reopened this May 20, 2015
@Manishearth
Copy link
Member

Travis changed itself to default to stable. I did locally fix this for all my crates, but I had flaky internet and the clippy push probably didn't go through.


#[deny(len_without_is_empty)]
impl One {
fn len(self: &Self) -> isize { //~ERROR
Copy link
Member

Choose a reason for hiding this comment

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

Nit: keep at least the beginning bits of the error message here (and for most of the ones below too)

@llogiq
Copy link
Contributor Author

llogiq commented May 20, 2015

I'll close this and switch to another branch.

@llogiq llogiq closed this May 20, 2015
@llogiq llogiq deleted the len_zero branch May 20, 2015 07:31
@llogiq llogiq mentioned this pull request May 20, 2015
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.

trait with a len() method but without is_empty() method
2 participants