From 8d32d16a918b0f19c139b6d56eb69f4347c9a37f Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Fri, 6 Oct 2023 12:06:56 +1100 Subject: [PATCH] Resolve todo --- yamux/src/frame/io.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/yamux/src/frame/io.rs b/yamux/src/frame/io.rs index 3dc0f012..47a359ed 100644 --- a/yamux/src/frame/io.rs +++ b/yamux/src/frame/io.rs @@ -54,7 +54,14 @@ impl fmt::Debug for WriteState { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { WriteState::Init => f.write_str("(WriteState::Init)"), - _ => todo!(), + WriteState::Writing { offset, frame } => { + write!( + f, + "(WriteState::Writing (offset {}) (buffer-len {}))", + offset, + frame.len() + ) + } } } }