Skip to content

Commit

Permalink
Document map_clone known problems #498
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad-Shcherbina committed Jan 17, 2018
1 parent 41ea14d commit ada0d2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clippy_lints/src/map_clone.rs
Expand Up @@ -10,7 +10,9 @@ use utils::{is_adjusted, iter_input_pats, match_qpath, match_trait_method, match
/// **Why is this bad?** It makes the code less readable than using the
/// `.cloned()` adapter.
///
/// **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:**
/// ```rust
Expand Down

0 comments on commit ada0d2c

Please sign in to comment.