bors d5223be2e3 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.
2021-02-25 21:16:02 +00:00
..
2021-01-07 18:54:12 -03:00
2021-02-10 16:15:29 +09:00
2021-02-10 16:15:29 +09:00
2021-02-10 16:15:29 +09:00
2021-02-21 23:15:28 -05:00
2021-02-21 23:15:28 -05:00
2021-02-21 23:15:28 -05:00
2021-02-25 22:03:11 +01:00
2021-02-10 11:57:28 +01:00
2021-02-10 11:57:28 +01:00
2021-02-10 11:57:28 +01:00
2021-02-10 11:57:28 +01:00
2021-02-06 00:10:52 +09:00