manual-fill Prefer fill over an index loop assigning one repeated value An index loop from zero to an array or slice length that assigns one repeated value spells the fill operation manually. Instead, you SHOULD call fill with that value. - Category: performance - Level: warning - Fix: suggestion - Scope: module Reported function clear(values: int32[]): void { for (let index: isize = 0; index < values.length; index++) { values[index] = 0; } } Accepted function clear(values: int32[]): void { values.fill(0); } Prior art - Clippy ยท manualslicefill language/linter/src/rules/performance/manualfill.rs:8