File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ wasmtest:
1010 cargo clean --target-dir target
1111 cargo build --tests --target wasm32-wasip1 --target-dir target
1212 wasmtime run target/wasm32-wasip1/debug/deps/simd_json* .wasm
13- wasmtime run --dir=. target/wasm32-wasip1/debug/deps/jsonchecker* .wasm
13+ wasmtime run --dir=. target/wasm32-wasip1/debug/deps/jsonchecker* .wasm
Original file line number Diff line number Diff line change @@ -136,12 +136,11 @@ pub(crate) fn parse_str<'invoke, 'de>(
136136 // within the unicode codepoint handling code.
137137 src_i += bs_dist as usize ;
138138 dst_i += bs_dist as usize ;
139- let ( o, s) = if let Ok ( r ) =
139+ let Ok ( ( o, s) ) =
140140 handle_unicode_codepoint ( unsafe { src. get_kinda_unchecked ( src_i..) } , unsafe {
141141 buffer. get_kinda_unchecked_mut ( dst_i..)
142- } ) {
143- r
144- } else {
142+ } )
143+ else {
145144 return Err ( Deserializer :: error_c ( src_i, 'u' , InvalidUnicodeCodepoint ) ) ;
146145 } ;
147146 if o == 0 {
You can’t perform that action at this time.
0 commit comments