]> git.lizzy.rs Git - rust.git/commit
Fix `unit_arg` false positive
authorMichael Wright <mikerite@lavabit.com>
Tue, 29 Jan 2019 05:22:08 +0000 (07:22 +0200)
committerMichael Wright <mikerite@lavabit.com>
Tue, 29 Jan 2019 05:22:08 +0000 (07:22 +0200)
commitdf04238d3aea4b8b105c286b49d54dd77c2b5f83
tree1df2b0155ebf4850b84a171ed8f0d0694550155d
parent410d5ba6c3bea86632247a559685c2e13dedea91
Fix `unit_arg` false positive

Ignore arguments with the question mark operator.

Closes #2945
clippy_lints/src/types.rs
tests/ui/unit_arg.fixed
tests/ui/unit_arg.rs