]> git.lizzy.rs Git - rust.git/commit
Fix match_same_arms to fail late
authorVincent Dal Maso <vincent.dalmaso.ext@delair-tech.com>
Thu, 16 May 2019 09:27:45 +0000 (11:27 +0200)
committerVincent Dal Maso <vincent.dalmaso.ext@delair-tech.com>
Thu, 16 May 2019 09:27:45 +0000 (11:27 +0200)
commit902726c38d79d4e63567f2bbd5ddff475c2f1b2b
treee0388c76de767568efe342dc7486e0526f439fd1
parentf49d878ce5aede7e99d284a97cfdca321314ccc2
Fix match_same_arms to fail late

Changes:
- Add a function search_same_list which return a list of matched expressions
- Change the match_same_arms implementation behaviour. It will lint each same arms found.
clippy_lints/src/copies.rs