Skip to content

Conversation

luqmana
Copy link
Contributor

@luqmana luqmana commented May 13, 2013

bors added a commit that referenced this pull request May 13, 2013
@bors bors closed this May 13, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Mar 11, 2021
…msteffen

Fix false positive for unit_arg lint

Fixes rust-lang#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants