We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25a57e0 + ccbfd69 commit 0c96f42Copy full SHA for 0c96f42
src/tests.rs
@@ -55,7 +55,7 @@ impl NodeLabels<&'static str> {
55
fn to_opt_strs(self) -> Vec<Option<&'static str>> {
56
match self {
57
UnlabelledNodes(len) => vec![None; len],
58
- AllNodesLabelled(lbls) => lbls.into_iter().map(|l| Some(l)).collect(),
+ AllNodesLabelled(lbls) => lbls.into_iter().map(Some).collect(),
59
SomeNodesLabelled(lbls) => lbls.into_iter().collect(),
60
}
61
0 commit comments