mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Thank you clippy, very cool
This commit is contained in:
parent
167c9b2113
commit
c8f083aa44
@ -12,9 +12,7 @@ fn check_cyclic_skill_deps() {
|
||||
let mut graph = UnGraph::new_undirected();
|
||||
let mut nodes = HashMap::<Skill, _>::new();
|
||||
let mut add_node = |graph: &mut UnGraph<Skill, _>, node: Skill| {
|
||||
*nodes
|
||||
.entry(node.clone())
|
||||
.or_insert_with(|| graph.add_node(node.clone()))
|
||||
*nodes.entry(node).or_insert_with(|| graph.add_node(node))
|
||||
};
|
||||
|
||||
for (skill, prereqs) in skill_prereqs.iter() {
|
||||
|
Loading…
Reference in New Issue
Block a user