From 2f5f93b7ce51fa3681575250e4998809c0c6ff70 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Mon, 15 Jul 2024 08:16:43 +0200 Subject: [PATCH] clippy --- crates/turbo-tasks/src/task/concrete_task_input.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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()); } }