Skip to content

Commit

Permalink
review fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Nov 15, 2024
1 parent 2c3de6d commit 19acb87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions turbopack/crates/turbo-tasks-backend/src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1276,9 +1276,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
removed_data.extend(task.extract_if(CachedDataItemIndex::CellData, |key, _| {
matches!(key, &CachedDataItemKey::CellData { cell } if cell_counters
.get(&cell.type_id)
.map_or(true, |start_index| cell.index >= *start_index) && {
true
})
.map_or(true, |start_index| cell.index >= *start_index))
}));
if self.should_track_children() {
old_edges.extend(task.iter(CachedDataItemIndex::Children).filter_map(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use core::panic;
use std::{
hash::{BuildHasherDefault, Hash},
mem::take,
ops::{Deref, DerefMut},
panic,
thread::available_parallelism,
};

Expand Down

0 comments on commit 19acb87

Please sign in to comment.