Skip to content

Commit ad16941

Browse files
authored
bump pyo3 to 0.24 (#189)
1 parent 4023ba1 commit ad16941

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ inherits = "release"
2929
debug = true
3030

3131
[workspace.dependencies]
32-
pyo3 = { version = "0.23" }
33-
pyo3-build-config = { version = "0.23" }
32+
pyo3 = { version = "0.24" }
33+
pyo3-build-config = { version = "0.24" }

crates/jiter/src/string_decoder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ fn parse_escape(data: &[u8], index: usize) -> JsonResult<(char, usize)> {
315315
if !(0xDC00..=0xDFFF).contains(&n2) {
316316
return json_err!(LoneLeadingSurrogateInHexEscape, index);
317317
}
318-
let n2 = (((n - 0xD800) as u32) << 10 | (n2 - 0xDC00) as u32) + 0x1_0000;
318+
let n2 = ((((n - 0xD800) as u32) << 10) | ((n2 - 0xDC00) as u32)) + 0x1_0000;
319319

320320
match char::from_u32(n2) {
321321
Some(c) => Ok((c, index)),

0 commit comments

Comments
 (0)