File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
subtle-encoding/src/bech32 Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,9 @@ branches:
7
7
8
8
rust :
9
9
- 1.36.0 # Minimum supported
10
- # - stable # Stable should always be supported (but hasn't been bumped to 1.36)
10
+ - stable # Stable should always work too
11
11
12
- os :
13
- - linux
14
- - osx
15
- - windows
12
+ os : linux
16
13
17
14
matrix :
18
15
fast_finish : true
@@ -22,6 +19,13 @@ matrix:
22
19
# improvements to Travis Windows support
23
20
- os : windows
24
21
include :
22
+ # Travis hasn't bumped `stable` on macOS to 1.36 yet =(
23
+ - name : " Rust: 1.36"
24
+ os : osx
25
+ rust : 1.36.0
26
+ - name : " Rust: 1.36"
27
+ os : windows
28
+ rust : 1.36.0
25
29
- name : " Rust: stable (wasm32)"
26
30
rust : stable
27
31
script :
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ impl Bech32 {
109
109
// Check separator validity
110
110
match separator {
111
111
'1' | 'B' | 'I' | 'O' | 'b' | 'i' | 'o' => ( ) ,
112
- '0' ... '9' | 'A' ... 'Z' | 'a' ... 'z' => panic ! ( "invalid separator: {:?}" , separator) ,
112
+ '0' ..= '9' | 'A' ..= 'Z' | 'a' ..= 'z' => panic ! ( "invalid separator: {:?}" , separator) ,
113
113
_ => ( ) ,
114
114
}
115
115
@@ -200,7 +200,7 @@ impl Bech32 {
200
200
// Ensure all characters in the human readable part are in a valid range
201
201
for c in hrp. chars ( ) {
202
202
match c {
203
- '!' ... '@' | 'A' ... 'Z' | '[' ... '`' | 'a' ... 'z' | '{' ... '~' => ( ) ,
203
+ '!' ..= '@' | 'A' ..= 'Z' | '[' ..= '`' | 'a' ..= 'z' | '{' ..= '~' => ( ) ,
204
204
_ => return Err ( EncodingInvalid ) ,
205
205
}
206
206
}
You can’t perform that action at this time.
0 commit comments