From 1bd3f8dc633bdca967b4009deb5488538e2c7039 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Fri, 20 Dec 2024 16:21:37 +0100 Subject: [PATCH] add Debug for DequeSet --- .../crates/turbo-tasks-backend/src/utils/deque_set.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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 c4b7fd1b47e8da..5ee5a3095f4ee0 100644 --- a/turbopack/crates/turbo-tasks-backend/src/utils/deque_set.rs +++ b/turbopack/crates/turbo-tasks-backend/src/utils/deque_set.rs @@ -1,5 +1,6 @@ use std::{ collections::{HashSet, VecDeque}, + fmt::Debug, hash::{BuildHasher, BuildHasherDefault, Hash}, }; @@ -20,6 +21,12 @@ pub struct DequeSet> { queue: VecDeque, } +impl Debug for DequeSet { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + self.queue.fmt(f) + } +} + impl Default for DequeSet { fn default() -> Self { Self {