Skip to content

Commit d2c069d

Browse files
Document map_clone known problems #498
(cherry picked from commit ada0d2c)
1 parent d3c747c commit d2c069d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clippy_lints/src/map_clone.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ pub struct Pass;
2727
///
2828
/// **Why is this bad?** Readability, this can be written more concisely
2929
///
30-
/// **Known problems:** None.
30+
/// **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).
3133
///
3234
/// **Example:**
3335
///

0 commit comments

Comments
 (0)