Skip to content

Commit a2d55d4

Browse files
committed
Allow grouping address values with _
1 parent 88e20d3 commit a2d55d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@ mod binary {
402402
where
403403
E: serde::de::Error,
404404
{
405+
// ignore any `_` (used for digit grouping)
406+
let value = &value.replace('_', "");
407+
405408
let num = if value.starts_with("0x") {
406409
u64::from_str_radix(&value[2..], 16)
407410
} else {

0 commit comments

Comments
 (0)