Skip to content

Commit

Permalink
Auto merge of #3573 - Vlad-Shcherbina:map_clone_caveat, r=flip1995
Browse files Browse the repository at this point in the history
Document map_clone known problems #498

(cherry picked from commit ada0d2c)

This was lost in relicensing (057243f).
However, I [acknowledged](rust-lang/rust-clippy#3099 (comment)) relicensing so this cherry pick should be fine I guess.
  • Loading branch information
bors committed Dec 22, 2018
2 parents d9cc71f + d2c069d commit 52820e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clippy_lints/src/map_clone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:**
///
Expand Down

0 comments on commit 52820e5

Please sign in to comment.