From 937f17f045bb6596c977468d275ee817ff90a3ee Mon Sep 17 00:00:00 2001 From: Sterling Deng Date: Sun, 8 Sep 2024 08:35:48 -0700 Subject: [PATCH] impl Debug for ReceiveTimestamps --- quinn-proto/src/connection/spaces.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/quinn-proto/src/connection/spaces.rs b/quinn-proto/src/connection/spaces.rs index 798adb5e4..cbeb3ec86 100644 --- a/quinn-proto/src/connection/spaces.rs +++ b/quinn-proto/src/connection/spaces.rs @@ -557,8 +557,11 @@ pub struct ReceiverTimestamps(VecDeque<(u64, Instant)>); impl std::fmt::Debug for ReceiverTimestamps { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - // todo - Ok(()) + let mut l = f.debug_list(); + self.iter().for_each(|v| { + l.entry(&v); + }); + l.finish() } }