mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
Remove map_clone
fixed known problem
This commit is contained in:
parent
67a9f20c91
commit
f96dc2e9e2
1 changed files with 1 additions and 3 deletions
|
@ -19,9 +19,7 @@ pub struct Pass;
|
|||
///
|
||||
/// **Why is this bad?** Readability, this can be written more concisely
|
||||
///
|
||||
/// **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).
|
||||
/// **Known problems:** None
|
||||
///
|
||||
/// **Example:**
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue