Sep 8, 2023
version = 1 [[analyzers]] name = "rust" [analyzers.meta] msrv = "stable"
In tuple or struct patterns, zero or more "remaining" elements can be discarded
using the rest (
..) pattern and exactly one element can be discarded using
the wildcard pattern (
_). This checker looks for wildcard patterns next to a
rest pattern. The wildcard is unnecessary because the rest pattern can match
that element as well.
Certain forms of
fold have concise alternatives, such as
all. Prefer these forms where applicable as they improve
match statements with only one useful arm can be reduced to an
This helps improve readability, an
if-else statement nests lesser than a