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 b000995 commit 3e4bf2c
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 3e4bf2c

Please sign in to comment.