diff --git a/crates/turbo-tasks/src/task/concrete_task_input.rs b/crates/turbo-tasks/src/task/concrete_task_input.rs index 7d67d995765355..87818b4d73549c 100644 --- a/crates/turbo-tasks/src/task/concrete_task_input.rs +++ b/crates/turbo-tasks/src/task/concrete_task_input.rs @@ -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()); } }