Skip to content

Commit

Permalink
unneeded shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
KGrewal1 committed Nov 22, 2024
1 parent 723b47a commit af8f13f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tree_arena/src/tree_arena_unsafe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,9 @@ impl<T> DataMap<T> {
}

let mut current_id = Some(id);
#[expect(clippy::shadow_unrelated, reason = "Deliberate Shadow of original id")]
while let Some(id) = current_id {
path.push(id);
current_id = *self.parents.get(&id).unwrap();
while let Some(current) = current_id {
path.push(current);
current_id = *self.parents.get(&current).unwrap();
if current_id == start_id {
break;
}
Expand Down

0 comments on commit af8f13f

Please sign in to comment.