]> git.lizzy.rs Git - rust.git/commit
Auto merge of #6601 - mdm:fix-unit-args-false-positive, r=camsteffen
authorbors <bors@rust-lang.org>
Thu, 25 Feb 2021 21:16:02 +0000 (21:16 +0000)
committerbors <bors@rust-lang.org>
Thu, 25 Feb 2021 21:16:02 +0000 (21:16 +0000)
commitd5223be2e30a9d116b839bda418bec99d2949a68
treec184e67b13c36ab2e3bdfa7da63ca8f78a439524
parent5c6cd87b94cb59efff08c0f0e44c376f92afa7e5
parentcbe6eec3e67347af130769ad4a3bd2168997b411
Auto merge of #6601 - mdm:fix-unit-args-false-positive, r=camsteffen

Fix false positive for unit_arg lint

Fixes #6447

To avoid false positives don't complain about unit args when they come from a path expression, e.g. a local variable.

**Note:** This is my first contribution to Clippy, so I might have messed up somewhere. Any feedback is welcome and I'm happy to work out any kinks.

---

changelog: Do not lint unit arguments when they come from a path expression.
clippy_lints/src/types.rs