]> git.lizzy.rs Git - rust.git/commitdiff
redundant closures don't allocate
authorManish Goregaokar <manishsmail@gmail.com>
Sat, 16 Jul 2016 12:55:00 +0000 (18:25 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Sat, 16 Jul 2016 12:55:00 +0000 (18:25 +0530)
clippy_lints/src/eta_reduction.rs

index 4cd9bc8cba687dd9b1fc71848df0888ef6ea1267..30c8e2645ae340904a08ac75d5629ec53d4a891e 100644 (file)
@@ -11,8 +11,8 @@
 /// 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
 ///