Skip to content

Commit

Permalink
impl Debug for ReceiveTimestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
sterlingdeng committed Sep 8, 2024
1 parent f814f4c commit 937f17f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions quinn-proto/src/connection/spaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 937f17f

Please sign in to comment.