Skip to content

Commit

Permalink
no invalidation on Drop
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Sep 5, 2024
1 parent fede330 commit 2943443
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions turbopack/crates/turbo-tasks/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,6 @@ impl<T> PartialEq for TransientState<T> {
}
impl<T> Eq for TransientState<T> {}

impl<T> Drop for TransientState<T> {
fn drop(&mut self) {
let mut inner = self.inner.lock();
for invalidator in take(&mut inner.invalidators) {
invalidator.invalidate();
}
}
}

impl<T> TransientState<T> {
pub fn new() -> Self {
mark_stateful();
Expand Down

0 comments on commit 2943443

Please sign in to comment.