We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eb6419c + 1ef788b commit ae3e292Copy full SHA for ae3e292
1 file changed
src/vertex_id.rs
@@ -6,7 +6,10 @@ pub struct VertexId([u8; 16]); // 128bit
6
7
impl core::fmt::Debug for VertexId {
8
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
9
- write!(f, "VertexId({})", hex::encode(self.0))
+ let mut buff: [u8; 32] = [0 as u8; 32];
10
+ let _ = hex::encode_to_slice(self.0, &mut buff);
11
+ let s = core::str::from_utf8(&buff).unwrap();
12
+ write!(f, "VertexId({})", s)
13
}
14
15
0 commit comments