Skip to content

Commit ab3713a

Browse files
committed
Fixed a clippy::clone_on_copy.
1 parent 7ae8132 commit ab3713a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdg/src/info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fn check_children_conflict(
117117
let mut max_descs: HashMap<Option<Field>, NodeId> = HashMap::new();
118118
for id in children.get(n_id).unwrap() {
119119
let sib_node: &Node = g.nodes.get(*id).unwrap();
120-
let my_last_desc = descs.get(id).unwrap().clone();
120+
let my_last_desc = *descs.get(id).unwrap();
121121
// if the first below matches, then two siblings, neither a field, conflict
122122
// if the second matches, then two siblings of the same field conflict
123123
if matches!(max_descs.get(&None), Some(max_desc) if max_desc > id)

0 commit comments

Comments
 (0)