pub fn check_checkmtu_mimeswap<const TO_MIME: bool>
(mtu: u32, data: &mut [u8])
{
-// eprintln!("before: {}", DumpHex(data));
+// eprintln!("before: {:?}", DumpHex(data));
for mut packet in data.split_mut(|&c| c == SLIP_END) {
if packet.len() > mtu.sat() {
}
}
-// eprintln!(" after: {}", DumpHex(data));
+// eprintln!(" after: {:?}", DumpHex(data));
}
pub type Frame = Vec<u8>;
}
pub struct DumpHex<'b>(pub &'b [u8]);
-impl Display for DumpHex<'_> {
+impl Debug for DumpHex<'_> {
#[throws(fmt::Error)]
fn fmt(&self, f: &mut fmt::Formatter) {
for v in self.0 { write!(f, "{:02x}", v)?; }