Skip to content

Commit 2c3de6d

Browse files
committed
clippy
1 parent a654851 commit 2c3de6d

File tree

2 files changed

+6
-11
lines changed
  • turbopack/crates
    • turbo-tasks-auto-hash-map/src
    • turbo-tasks-backend/src/backend

2 files changed

+6
-11
lines changed

turbopack/crates/turbo-tasks-auto-hash-map/src/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ where
865865
Map(std::collections::hash_map::ExtractIf<'l, K, V, F>),
866866
}
867867

868-
impl<'l, K, V, const I: usize, F> Iterator for ExtractIfIter<'l, K, V, I, F>
868+
impl<K, V, const I: usize, F> Iterator for ExtractIfIter<'_, K, V, I, F>
869869
where
870870
F: for<'a, 'b> FnMut(&'a K, &'b mut V) -> bool,
871871
{

turbopack/crates/turbo-tasks-backend/src/backend/mod.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,16 +1274,11 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
12741274
},
12751275
));
12761276
removed_data.extend(task.extract_if(CachedDataItemIndex::CellData, |key, _| {
1277-
match key {
1278-
&CachedDataItemKey::CellData { cell }
1279-
if cell_counters
1280-
.get(&cell.type_id)
1281-
.map_or(true, |start_index| cell.index >= *start_index) =>
1282-
{
1283-
true
1284-
}
1285-
_ => false,
1286-
}
1277+
matches!(key, &CachedDataItemKey::CellData { cell } if cell_counters
1278+
.get(&cell.type_id)
1279+
.map_or(true, |start_index| cell.index >= *start_index) && {
1280+
true
1281+
})
12871282
}));
12881283
if self.should_track_children() {
12891284
old_edges.extend(task.iter(CachedDataItemIndex::Children).filter_map(

0 commit comments

Comments
 (0)