]> git.lizzy.rs Git - rust.git/commit
Use `utils::sugg` in `match` related lints
authormcarton <cartonmartin+git@gmail.com>
Sun, 3 Jul 2016 17:13:01 +0000 (19:13 +0200)
committermcarton <cartonmartin+git@gmail.com>
Sun, 3 Jul 2016 21:27:37 +0000 (23:27 +0200)
commitffa840d4f2bbe31721b40d56093259c4a5c0b50b
treed029213cce130248fe2ab25c016f612b4a6ae991
parentcc18556ae550089bf79fb57013dc83ae5873336b
Use `utils::sugg` in `match` related lints

Also don't build suggestion when unnecessary.
clippy_lints/src/matches.rs
clippy_lints/src/utils/sugg.rs
tests/compile-fail/matches.rs