diff --git a/clippy_lints/src/eta_reduction.rs b/clippy_lints/src/eta_reduction.rs index 4cd9bc8cba6..30c8e2645ae 100644 --- a/clippy_lints/src/eta_reduction.rs +++ b/clippy_lints/src/eta_reduction.rs @@ -11,8 +11,8 @@ pub struct EtaPass; /// function can be called directly. `unsafe` functions or calls where types get adjusted are /// ignored. /// -/// **Why is this bad?** Needlessly creating a closure just costs heap space and adds code for no -/// benefit. +/// **Why is this bad?** Needlessly creating a closure adds code for no +/// benefit and gives the optimizer more work. /// /// **Known problems:** None ///