We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13a30ae + 3e13e24 commit fc2c6cbCopy full SHA for fc2c6cb
clippy_lints/src/eta_reduction.rs
@@ -11,8 +11,8 @@ pub struct EtaPass;
11
/// function can be called directly. `unsafe` functions or calls where types get adjusted are
12
/// ignored.
13
///
14
-/// **Why is this bad?** Needlessly creating a closure just costs heap space and adds code for no
15
-/// benefit.
+/// **Why is this bad?** Needlessly creating a closure adds code for no
+/// benefit and gives the optimizer more work.
16
17
/// **Known problems:** None
18
0 commit comments