Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jan 14, 2025
1 parent be5006c commit afe1116
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1501,16 +1501,14 @@ impl AggregationUpdateQueue {
);
}
}
if !new_followers_of_upper_uppers.is_empty() {
// notify uppers about new follower
if !upper_upper_ids_for_new_followers.is_empty() {
#[cfg(feature = "trace_aggregation_update")]
let _span = trace_span!("new follower").entered();
// notify uppers about new follower
if !upper_upper_ids_for_new_followers.is_empty() {
self.push(AggregationUpdateJob::InnerOfUppersHasNewFollowers {
upper_ids: upper_upper_ids_for_new_followers,
new_follower_ids: new_followers_of_upper_uppers,
});
}
self.push(AggregationUpdateJob::InnerOfUppersHasNewFollowers {
upper_ids: upper_upper_ids_for_new_followers,
new_follower_ids: new_followers_of_upper_uppers,
});
}
}

Expand Down Expand Up @@ -1864,7 +1862,7 @@ mod tests {
#[test]
fn test_swap_retain() {
let mut vec = vec![1, 2, 3, 4, 5];
swap_retain(&mut vec, |a| if *a % 2 == 0 { false } else { true });
swap_retain(&mut vec, |a| *a % 2 != 0);
assert_eq!(vec, vec![1, 5, 3]);
}
}
1 change: 0 additions & 1 deletion turbopack/crates/turbo-tasks-testing/tests/performance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ fn run_big_graph_test(counts: Vec<u32>) -> impl Future<Output = Result<()>> + Se
"Graph {:?} = {} tasks",
counts,
(1..=counts.len())
.into_iter()
.map(|i| counts.iter().take(i).product::<u32>())
.sum::<u32>()
);
Expand Down

0 comments on commit afe1116

Please sign in to comment.