Skip to content

Commit 80c5288

Browse files
committed
doc: comment why debug was implemented manually
1 parent 1c94590 commit 80c5288

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storage/src/node/branch.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ mod ethhash {
201201
Rlp(SmallVec<[u8; 32]>),
202202
}
203203

204+
/// Manual implementation of [`Debug`](std::fmt::Debug) so that the RLP bytes
205+
/// are displayed as hex rather than raw bytes, which is more useful for
206+
/// debugging purposes.
204207
impl std::fmt::Debug for HashOrRlp {
205208
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
206209
match self {

0 commit comments

Comments
 (0)