File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
branches/snap-stage3/src/libserialize Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 7be8f0af0393dcdb077c2f6b1653836fd3fba235
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 6df514b06123c7361730ac8ece999b2265b2f4ef
4
+ refs/heads/snap-stage3: efdb77b8d44fe2d5041ae3a5a8e0c7ef53715438
5
5
refs/heads/try: 502e4c045236682e9728539dc0d2b3d0b237f55c
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -112,11 +112,11 @@ impl<'a> FromHex for &'a str {
112
112
for ( idx, byte) in self . bytes ( ) . enumerate ( ) {
113
113
buf <<= 4 ;
114
114
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' => {
120
120
buf >>= 4 ;
121
121
continue
122
122
}
You can’t perform that action at this time.
0 commit comments