Structsยง
Enumsยง
- NoBounds
Exception ๐ - Whether parentheses may be omitted from a type without resulting in ambiguity.
- Unused
Delims ๐Ctx
Staticsยง
- PATH_
STATEMENTS - The
path_statementslint detects path statements with no effect. - UNUSED_
ALLOCATION ๐ - The
unused_allocationlint detects unnecessary allocations that can be eliminated. - UNUSED_
BRACES ๐ - The
unused_braceslint detects unnecessary braces around an expression. - UNUSED_
IMPORT_ ๐BRACES - The
unused_import_braceslint catches unnecessary braces around an imported item. - UNUSED_
MUST_ USE - The
unused_must_uselint detects unused result of a type flagged as#[must_use]. - UNUSED_
PARENS ๐ - The
unused_parenslint detectsif,match,whileandreturnwith parentheses; they do not need them. - UNUSED_
RESULTS - The
unused_resultslint checks for the unused result of an expression in a statement.
Traitsยง
- Unused
Delim ๐Lint - Used by both
UnusedParensandUnusedBracesto prevent code duplication.