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.
clippy::redundant_closure
2 parents 98205e6 + 55be3c2 commit e85b1ddCopy full SHA for e85b1dd
clippy_lints/src/eta_reduction.rs
@@ -29,12 +29,6 @@ declare_clippy_lint! {
29
/// Needlessly creating a closure adds code for no benefit
30
/// and gives the optimizer more work.
31
///
32
- /// ### Known problems
33
- /// If creating the closure inside the closure has a side-
34
- /// effect then moving the closure creation out will change when that side-
35
- /// effect runs.
36
- /// See [#1439](https://github.com/rust-lang/rust-clippy/issues/1439) for more details.
37
- ///
38
/// ### Example
39
/// ```rust,ignore
40
/// xs.map(|x| foo(x))
0 commit comments