Skip to content

Commit

Permalink
Refactoring - use the dedicated copied method, instead of an explicit…
Browse files Browse the repository at this point in the history
… closure for copying elements
  • Loading branch information
ndebuhr committed May 22, 2021
1 parent 85b3549 commit 803c51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/model_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ lazy_static! {
.unwrap()
.iter()
.map(|(k, _)| k)
.map(|&x| x)
.copied()
.collect::<Vec<_>>()
};
}
Expand Down

0 comments on commit 803c51b

Please sign in to comment.