From 5125c59dfa00280d81d6e2f605d6248562383ecc Mon Sep 17 00:00:00 2001 From: EXPLOSION Date: Sat, 11 Feb 2023 23:23:42 +0000 Subject: [PATCH] Display correct payload in Frame::fmt --- src/protocol/frame/frame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/frame/frame.rs b/src/protocol/frame/frame.rs index ce795ec..08def34 100644 --- a/src/protocol/frame/frame.rs +++ b/src/protocol/frame/frame.rs @@ -385,7 +385,7 @@ payload: 0x{} // self.mask.map(|mask| format!("{:?}", mask)).unwrap_or("NONE".into()), self.len(), self.payload.len(), - self.payload.iter().map(|byte| format!("{:x}", byte)).collect::() + self.payload.iter().map(|byte| format!("{:02x}", byte)).collect::() ) } }