Skip to main content

What it flags

Cloning values inside a Rust loop adds avoidable heap allocations.

Example

Calling .clone() inside a Rust loop adds avoidable heap allocations.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: