redundant-closure Disallow closures that only forward their arguments to another function A closure that passes each parameter unchanged to one function adds another callable value and invocation without changing the call. Instead, you SHOULD pass the function directly when the forwarded arguments require no adjustments. - Category: performance - Level: warning - Fix: automatic - Scope: module Reported declare function square(value: int32): int32; function squares(values: int32[]): Iterator { return values.iterator().map((value) => square(value)); } Accepted declare function square(value: int32): int32; function squares(values: int32[]): Iterator { return values.iterator().map(square); } Prior art - Clippy ยท redundantclosure language/linter/src/rules/performance/redundantclosure.rs:8