Skip to content

Commit

Permalink
Auto merge of #80499 - matthiaskrgr:red_clos, r=estebank
Browse files Browse the repository at this point in the history
remove redundant closures (clippy::redundant_closure)
  • Loading branch information
bors committed Jan 12, 2021
2 parents 25a57e0 + ccbfd69 commit 0c96f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl NodeLabels<&'static str> {
fn to_opt_strs(self) -> Vec<Option<&'static str>> {
match self {
UnlabelledNodes(len) => vec![None; len],
AllNodesLabelled(lbls) => lbls.into_iter().map(|l| Some(l)).collect(),
AllNodesLabelled(lbls) => lbls.into_iter().map(Some).collect(),
SomeNodesLabelled(lbls) => lbls.into_iter().collect(),
}
}
Expand Down

0 comments on commit 0c96f42

Please sign in to comment.