Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Nov 14, 2024
1 parent 11cf49f commit afea482
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion turbopack/crates/turbo-tasks-auto-hash-map/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ where
Map(std::collections::hash_map::ExtractIf<'l, K, V, F>),
}

impl<'l, K, V, const I: usize, F> Iterator for ExtractIfIter<'l, K, V, I, F>
impl<K, V, const I: usize, F> Iterator for ExtractIfIter<'_, K, V, I, F>
where
F: for<'a, 'b> FnMut(&'a K, &'b mut V) -> bool,
{
Expand Down
15 changes: 5 additions & 10 deletions turbopack/crates/turbo-tasks-backend/src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1274,16 +1274,11 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
},
));
removed_data.extend(task.extract_if(CachedDataItemIndex::CellData, |key, _| {
match key {
&CachedDataItemKey::CellData { cell }
if cell_counters
.get(&cell.type_id)
.map_or(true, |start_index| cell.index >= *start_index) =>
{
true
}
_ => false,
}
matches!(key, &CachedDataItemKey::CellData { cell } if cell_counters
.get(&cell.type_id)
.map_or(true, |start_index| cell.index >= *start_index) && {
true
})
}));
if self.should_track_children() {
old_edges.extend(task.iter(CachedDataItemIndex::Children).filter_map(
Expand Down

0 comments on commit afea482

Please sign in to comment.