Skip to content

Commit

Permalink
fix panic in subtract (#7859)
Browse files Browse the repository at this point in the history
### Description

<!--
  ✍️ Write a short summary of your work.
  If necessary, include relevant screenshots.
-->

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->


Closes PACK-2866
  • Loading branch information
sokra committed Mar 28, 2024
1 parent ad6b88b commit abbc632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/turbo-tasks-memory/src/count_hash_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ impl<'a, T> Iterator for CountHashSetIter<'a, T> {
type Item = &'a T;

fn next(&mut self) -> Option<Self::Item> {
self.count -= 1;
self.count = self.count.saturating_sub(1);
self.inner.next()
}

Expand Down

0 comments on commit abbc632

Please sign in to comment.