$ cargo clippy
warning: You are using an explicit closure for copying elements
--> src/main.rs:325:26
|
325 | families.zip(priorities.iter().map(|p| *p)).collect()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider calling the dedicated `copied` method: `priorities.iter().copied()`
|
= note: #[warn(clippy::map_clone)] on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone