File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed 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
- refs/heads/master: 6df514b06123c7361730ac8ece999b2265b2f4ef
2
+ refs/heads/master: efdb77b8d44fe2d5041ae3a5a8e0c7ef53715438
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 9fc8394d3bce22ab483f98842434c84c396212ae
5
5
refs/heads/try: cd2003ffd8dd976342f9e8fc1429ae93d6780e81
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