Structsยง
Enumsยง
- Unused
Delims ๐Ctx
Staticsยง
- PATH_
STATEMENTS - The
path_statements
lint detects path statements with no effect. - UNUSED_
ALLOCATION ๐ - The
unused_allocation
lint detects unnecessary allocations that can be eliminated. - UNUSED_
BRACES ๐ - The
unused_braces
lint detects unnecessary braces around an expression. - UNUSED_
IMPORT_ ๐BRACES - The
unused_import_braces
lint catches unnecessary braces around an imported item. - UNUSED_
MUST_ USE - The
unused_must_use
lint detects unused result of a type flagged as#[must_use]
. - UNUSED_
PARENS ๐ - The
unused_parens
lint detectsif
,match
,while
andreturn
with parentheses; they do not need them. - UNUSED_
RESULTS - The
unused_results
lint checks for the unused result of an expression in a statement.
Traitsยง
- Unused
Delim ๐Lint - Used by both
UnusedParens
andUnusedBraces
to prevent code duplication.