Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jul 15, 2024
1 parent 8cf3983 commit b9f07c6
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 b9f07c6

Please sign in to comment.