milkey-mouse / planets

A space game.
GNU General Public License v3.0
3 stars 1 forks source link

Use Iterator .copied() once stabilized #34

Closed milkey-mouse closed 5 years ago

milkey-mouse commented 5 years ago
$ 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