Skip to content

Commit aad6017

Browse files
committed
---
yaml --- r: 127189 b: refs/heads/snap-stage3 c: efdb77b h: refs/heads/master i: 127187: 57589d7 v: v3
1 parent c9293d8 commit aad6017

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 7be8f0af0393dcdb077c2f6b1653836fd3fba235
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 6df514b06123c7361730ac8ece999b2265b2f4ef
4+
refs/heads/snap-stage3: efdb77b8d44fe2d5041ae3a5a8e0c7ef53715438
55
refs/heads/try: 502e4c045236682e9728539dc0d2b3d0b237f55c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libserialize/hex.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ impl<'a> FromHex for &'a str {
112112
for (idx, byte) in self.bytes().enumerate() {
113113
buf <<= 4;
114114

115-
match byte as char {
116-
'A'..'F' => buf |= byte - b'A' + 10,
117-
'a'..'f' => buf |= byte - b'a' + 10,
118-
'0'..'9' => buf |= byte - b'0',
119-
' '|'\r'|'\n'|'\t' => {
115+
match byte {
116+
b'A'..b'F' => buf |= byte - b'A' + 10,
117+
b'a'..b'f' => buf |= byte - b'a' + 10,
118+
b'0'..b'9' => buf |= byte - b'0',
119+
b' '|b'\r'|b'\n'|b'\t' => {
120120
buf >>= 4;
121121
continue
122122
}

0 commit comments

Comments
 (0)