Skip to content

Commit 0c96f42

Browse files
committed
Auto merge of #80499 - matthiaskrgr:red_clos, r=estebank
remove redundant closures (clippy::redundant_closure)
2 parents 25a57e0 + ccbfd69 commit 0c96f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl NodeLabels<&'static str> {
5555
fn to_opt_strs(self) -> Vec<Option<&'static str>> {
5656
match self {
5757
UnlabelledNodes(len) => vec![None; len],
58-
AllNodesLabelled(lbls) => lbls.into_iter().map(|l| Some(l)).collect(),
58+
AllNodesLabelled(lbls) => lbls.into_iter().map(Some).collect(),
5959
SomeNodesLabelled(lbls) => lbls.into_iter().collect(),
6060
}
6161
}

0 commit comments

Comments
 (0)