We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3c747c commit d2c069dCopy full SHA for d2c069d
clippy_lints/src/map_clone.rs
@@ -27,7 +27,9 @@ pub struct Pass;
27
///
28
/// **Why is this bad?** Readability, this can be written more concisely
29
30
-/// **Known problems:** None.
+/// **Known problems:** Sometimes `.cloned()` requires stricter trait
31
+/// bound than `.map(|e| e.clone())` (which works because of the coercion).
32
+/// See [#498](https://github.com/rust-lang-nursery/rust-clippy/issues/498).
33
34
/// **Example:**
35
0 commit comments