From 0ac6ccbcf5ffce41103ea51c18e63e2f433e008a 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 fbf32aec136af..c4b7fd1b47e8d 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), } } }