Skip to content

Commit 5380a80

Browse files
committed
v0: one more chars to bytes convert
1 parent e815de7 commit 5380a80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v0.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,8 +1057,8 @@ impl<'a, 'b, 's> Printer<'a, 'b, 's> {
10571057
}
10581058

10591059
let mut v = 0;
1060-
for c in hex.chars() {
1061-
v = (v << 4) | (c.to_digit(16).unwrap() as u64);
1060+
for c in hex.bytes() {
1061+
v = (v << 4) | ((c as char).to_digit(16).unwrap() as u64);
10621062
}
10631063
v.fmt(self.out.inner)
10641064
}

0 commit comments

Comments
 (0)