From eb76cdfd9809782cd8580eb7e5138050b9c121be Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Thu, 7 Nov 2024 10:52:12 +0100 Subject: [PATCH] avoid allocation --- turbopack/crates/turbo-tasks-backend/src/utils/deque_set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbopack/crates/turbo-tasks-backend/src/utils/deque_set.rs b/turbopack/crates/turbo-tasks-backend/src/utils/deque_set.rs index fbf32aec136af3..c4b7fd1b47e8da 100644 --- a/turbopack/crates/turbo-tasks-backend/src/utils/deque_set.rs +++ b/turbopack/crates/turbo-tasks-backend/src/utils/deque_set.rs @@ -24,7 +24,7 @@ impl Default for DequeSet { fn default() -> Self { Self { set: Default::default(), - queue: Default::default(), + queue: VecDeque::with_capacity(0), } } }