{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/rust-clippy/issues/2554","repository_url":"https://api.github.com/repos/rust-lang-nursery/rust-clippy","labels_url":"https://api.github.com/repos/rust-lang-nursery/rust-clippy/issues/2554/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rust-clippy/issues/2554/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/rust-clippy/issues/2554/events","html_url":"https://github.com/rust-lang-nursery/rust-clippy/issues/2554","id":306451531,"number":2554,"title":"len_zero: also handle .len() >= 1 ","user":{"login":"matthiaskrgr","id":476013,"avatar_url":"https://avatars2.githubusercontent.com/u/476013?v=4","gravatar_id":"","url":"https://api.github.com/users/matthiaskrgr","html_url":"https://github.com/matthiaskrgr","followers_url":"https://api.github.com/users/matthiaskrgr/followers","following_url":"https://api.github.com/users/matthiaskrgr/following{/other_user}","gists_url":"https://api.github.com/users/matthiaskrgr/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiaskrgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiaskrgr/subscriptions","organizations_url":"https://api.github.com/users/matthiaskrgr/orgs","repos_url":"https://api.github.com/users/matthiaskrgr/repos","events_url":"https://api.github.com/users/matthiaskrgr/events{/privacy}","received_events_url":"https://api.github.com/users/matthiaskrgr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-19T12:57:59Z","updated_at":"2018-03-19T12:57:59Z","closed_at":null,"author_association":"NONE","body":"since len() is unsigned, I think we can treat ````.len() >= 1```` the same as ````.len != 0```` or am I missing something?\r\n````rust\r\nif String::from(\"hello\").len() >= 1 {}\r\n````\r\ndoes not trigger a warning currently"}}
{"actor":{"display_login":"matthiaskrgr"}}