Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jul 17, 2024
1 parent a1ca324 commit d949ba2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crates/turbo-tasks/src/task/concrete_task_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,9 @@ impl ConcreteTaskInput {
}

pub fn shrink_to_fit(&mut self) {
match self {
ConcreteTaskInput::List(list) => {
list.shrink_to_fit();
list.iter_mut().for_each(|i| i.shrink_to_fit());
}
_ => {}
if let ConcreteTaskInput::List(list) = self {
list.shrink_to_fit();
list.iter_mut().for_each(|i| i.shrink_to_fit());
}
}

Expand Down

0 comments on commit d949ba2

Please sign in to comment.