diff --git a/master/index.html b/master/index.html index d9ae0cf7ff34..1feba8c48d6e 100644 --- a/master/index.html +++ b/master/index.html @@ -1650,7 +1650,7 @@

Example

.. } -
Applicability: MachineApplicable(?)
Added in: 1.49.0
Related Issues
View Source

What it does

+
Applicability: MachineApplicable(?)
Added in: 1.49.0

What it does

It identifies calls to .is_empty() on constant values.

Why is this bad?

String literals and constant values are known at compile time. Checking if they @@ -5595,7 +5595,7 @@

Example

} } -
Applicability: Unspecified(?)
Added in: pre 1.29.0

What it does

+
Applicability: Unspecified(?)
Added in: pre 1.29.0

What it does

Checks for getting the length of something via .len() just to compare to zero, and suggests using .is_empty() where applicable.

Why is this bad?

@@ -5619,7 +5619,7 @@

Example

.. } -
Applicability: MachineApplicable(?)
Added in: pre 1.29.0

What it does

+
Applicability: MachineApplicable(?)
Added in: pre 1.29.0

What it does

Checks for let-bindings, which are subsequently returned.

Why is this bad?