Skip to content

Commit 41897b4

Browse files
committed
---
yaml --- r: 126443 b: refs/heads/master c: efdb77b h: refs/heads/master i: 126441: 44158b6 126439: bedd103 v: v3
1 parent 21e926b commit 41897b4

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,5 +1,5 @@
11
---
2-
refs/heads/master: 6df514b06123c7361730ac8ece999b2265b2f4ef
2+
refs/heads/master: efdb77b8d44fe2d5041ae3a5a8e0c7ef53715438
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 9fc8394d3bce22ab483f98842434c84c396212ae
55
refs/heads/try: cd2003ffd8dd976342f9e8fc1429ae93d6780e81

trunk/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)