diff options
Diffstat (limited to 'compiler/rustc_graphviz/src/tests.rs')
| -rw-r--r-- | compiler/rustc_graphviz/src/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_graphviz/src/tests.rs b/compiler/rustc_graphviz/src/tests.rs index 055e13156ae..70b8197f5ef 100644 --- a/compiler/rustc_graphviz/src/tests.rs +++ b/compiler/rustc_graphviz/src/tests.rs @@ -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(), } } |
