Skip to main content

What it flags

Calling format! inside a Rust loop allocates a new String on every iteration.

Example

Calling format! inside a Rust loop allocates a new String on every iteration.

Configuration

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