]> git.lizzy.rs Git - rust.git/commit
Auto merge of #6226 - Urcra:master, r=flip1995
authorbors <bors@rust-lang.org>
Thu, 29 Oct 2020 15:12:24 +0000 (15:12 +0000)
committerbors <bors@rust-lang.org>
Thu, 29 Oct 2020 15:12:24 +0000 (15:12 +0000)
commite1a284555854f9aba4e22061ebb5981ad333b107
tree2d07c55946227fde7e397833104984c3adad3451
parentee9da9a19404f71f59b1e55e6c49ff99cd9919d0
parente3de544c22feb01437a060e88249652c103cb612
Auto merge of #6226 - Urcra:master, r=flip1995

Add lint for comparing to empty slices instead of using .is_empty()

Hey first time making a clippy lint

I added the implementation of the lint the `len_zero` since it shared a lot of the code, I would otherwise have to rewrite. Just tell me if the lint should use it's own file instead

changelog: Add lint for comparing to empty slices

Fixes #6217
CHANGELOG.md
clippy_lints/src/lib.rs
src/lintlist/mod.rs