Skip to content

Commit

Permalink
Resolve todo
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Oct 6, 2023
1 parent 0108a3d commit 8d32d16
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion yamux/src/frame/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
}
}
}
}
Expand Down

0 comments on commit 8d32d16

Please sign in to comment.