Skip to content

Commit fc2c6cb

Browse files
authored
Merge pull request #1103 from Manishearth/doc-eta
redundant closures don't allocate
2 parents 13a30ae + 3e13e24 commit fc2c6cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/eta_reduction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ pub struct EtaPass;
1111
/// function can be called directly. `unsafe` functions or calls where types get adjusted are
1212
/// ignored.
1313
///
14-
/// **Why is this bad?** Needlessly creating a closure just costs heap space and adds code for no
15-
/// benefit.
14+
/// **Why is this bad?** Needlessly creating a closure adds code for no
15+
/// benefit and gives the optimizer more work.
1616
///
1717
/// **Known problems:** None
1818
///

0 commit comments

Comments
 (0)