map-identity Disallow rebuilding an owned array through an identity map Mapping every element to itself rebuilds an owned array without changing its values. Instead, you SHOULD use the original owned array directly. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function identity(values: ^int32[]): ^int32[] { return values.map((value) => value); } Accepted function identity(values: ^int32[]): ^int32[] { return values; } Prior art - Clippy ยท mapidentity language/linter/src/rules/style/mapidentity.rs:8