diff --git a/Cargo.toml b/Cargo.toml index 87963dc..5d1d1ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simd-json-derive" -version = "0.17.0" +version = "0.18.0" authors = ["Heinz N. Gies "] edition = "2021" license = "Apache-2.0/MIT" @@ -20,13 +20,13 @@ members = ["simd-json-derive-int"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -simd-json-derive-int = { path = "./simd-json-derive-int", version = "0.17.0" } -value-trait = { version = "0.11.0" } +simd-json-derive-int = { path = "./simd-json-derive-int", version = "0.18.0" } +value-trait = { version = "0.12.0" } itoa = "1" ryu = "1" chrono = { version = "0.4", optional = true } -simd-json = { version = "0.16.0" } -heap-array = { version = "0.1.1", optional = true } +simd-json = { version = "0.17.0" } +heap-array = { version = "0.1", optional = true } thiserror = "2.0" [dev-dependencies] diff --git a/simd-json-derive-int/Cargo.toml b/simd-json-derive-int/Cargo.toml index 27fd6e9..94d6e40 100644 --- a/simd-json-derive-int/Cargo.toml +++ b/simd-json-derive-int/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simd-json-derive-int" -version = "0.17.0" +version = "0.18.0" authors = ["Heinz N. Gies "] edition = "2021" license = "Apache-2.0/MIT" @@ -15,7 +15,7 @@ proc-macro = true proc-macro2 = "1.0" quote = "1.0" syn = { version = "2.0", features = ["visit", "extra-traits"] } -simd-json = { version = "0.16.0" } +simd-json = { version = "0.17.0" } thiserror = "2" diff --git a/src/impls.rs b/src/impls.rs index fab7791..35f0aea 100644 --- a/src/impls.rs +++ b/src/impls.rs @@ -82,10 +82,8 @@ where { if let Some(simd_json::Node::Object { len: 1, .. }) = tape.next() { match tape.next() { - Some(simd_json::Node::String("Ok")) => Ok(Ok(TOk::from_tape(tape)?)), - Some(simd_json::Node::String("Err")) => Ok(Err(TErr::from_tape(tape)?)), - Some(simd_json::Node::String("ok")) => Ok(Ok(TOk::from_tape(tape)?)), - Some(simd_json::Node::String("err")) => Ok(Err(TErr::from_tape(tape)?)), + Some(simd_json::Node::String("Ok" | "ok")) => Ok(Ok(TOk::from_tape(tape)?)), + Some(simd_json::Node::String("Err" | "err")) => Ok(Err(TErr::from_tape(tape)?)), _ => Err(de::Error::custom("result not `Ok` or `Err`")), } } else {