Document map_clone known problems #498

(cherry picked from commit ada0d2c548)
This commit is contained in:
Vlad-Shcherbina 2018-01-17 21:40:47 +03:00 committed by Vlad Shcherbina
parent d3c747c752
commit d2c069de1e

View File

@ -27,7 +27,9 @@ pub struct Pass;
///
/// **Why is this bad?** Readability, this can be written more concisely
///
/// **Known problems:** None.
/// **Known problems:** Sometimes `.cloned()` requires stricter trait
/// bound than `.map(|e| e.clone())` (which works because of the coercion).
/// See [#498](https://github.com/rust-lang-nursery/rust-clippy/issues/498).
///
/// **Example:**
///