File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 8
8
if : github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : actions/checkout@v3
11
+ - uses : actions/checkout@v4
12
12
with :
13
13
submodules : true
14
14
21
21
- name : Setup emsdk
22
22
uses : mymindstorm/setup-emsdk@v14
23
23
with :
24
- version : 3.1.68
24
+ version : 4.0.7
25
25
26
26
- name : Build WASM
27
27
run : ./tool/build_wasm.sh
Original file line number Diff line number Diff line change @@ -41,8 +41,12 @@ impl<'de> Parser<'de> {
41
41
}
42
42
43
43
fn advance_byte ( & mut self ) -> Result < u8 , BsonError > {
44
- let slice = self . advance_checked ( 1 ) ?;
45
- Ok ( slice[ 0 ] )
44
+ let value = * self
45
+ . remaining_input
46
+ . split_off_first ( )
47
+ . ok_or_else ( || self . error ( ErrorKind :: UnexpectedEoF ) ) ?;
48
+
49
+ Ok ( value)
46
50
}
47
51
48
52
pub fn read_cstr ( & mut self ) -> Result < & ' de str , BsonError > {
You can’t perform that action at this time.
0 commit comments