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.
clippy::clone_on_copy
1 parent 7ae8132 commit ab3713aCopy full SHA for ab3713a
pdg/src/info.rs
@@ -117,7 +117,7 @@ fn check_children_conflict(
117
let mut max_descs: HashMap<Option<Field>, NodeId> = HashMap::new();
118
for id in children.get(n_id).unwrap() {
119
let sib_node: &Node = g.nodes.get(*id).unwrap();
120
- let my_last_desc = descs.get(id).unwrap().clone();
+ let my_last_desc = *descs.get(id).unwrap();
121
// if the first below matches, then two siblings, neither a field, conflict
122
// if the second matches, then two siblings of the same field conflict
123
if matches!(max_descs.get(&None), Some(max_desc) if max_desc > id)
0 commit comments