diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-04-16 00:00:22 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-04-16 00:17:38 +0200 |
| commit | 3837df2992354d4d08f6c1bc63311bdedb34cfb1 (patch) | |
| tree | 08f837bfe795c8523b36610d998ddf0ade1c68d3 /src/librustc_query_system | |
| parent | 139c64625173edab849acd9fbcea9739bb2bb802 (diff) | |
don't clone types that are copy (clippy::clone_on_copy)
Diffstat (limited to 'src/librustc_query_system')
| -rw-r--r-- | src/librustc_query_system/dep_graph/query.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_query_system/dep_graph/query.rs b/src/librustc_query_system/dep_graph/query.rs index 4a4283b2a0c..fb313d2658f 100644 --- a/src/librustc_query_system/dep_graph/query.rs +++ b/src/librustc_query_system/dep_graph/query.rs @@ -15,7 +15,7 @@ impl<K: DepKind> DepGraphQuery<K> { let mut graph = Graph::with_capacity(nodes.len(), edges.len()); let mut indices = FxHashMap::default(); for node in nodes { - indices.insert(node.clone(), graph.add_node(node.clone())); + indices.insert(*node, graph.add_node(*node)); } for &(ref source, ref target) in edges { |
