needless-borrow Disallow direct borrows that are immediately dereferenced Dereferencing a borrow created by the same expression returns the original value place. Instead, you SHOULD use that value directly. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function identity(value: int32): int32 { return *&value; } Accepted function identity(value: int32): int32 { return value; } Prior art - Clippy ยท needlessborrow language/linter/src/rules/style/needlessborrow.rs:8