From e4d492c7275054455f142952bf56697fec5379b6 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 23 May 2022 22:58:15 +0800 Subject: [PATCH] Fix no_object build. --- CHANGELOG.md | 1 + tests/serde.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20169aff..80d2ef52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ Enhancements * `EvalAltResult::IndexNotFound` is added to aid in raising errors for indexers. * `Engine::def_tag`, `Engine::def_tag_mut` and `Engine::set_tag` are added to manage a default value for the custom evaluation state, accessible via `EvalState::tag()` (which is the same as `NativeCallContext::tag()`). * Originally, the debugger's custom state uses the same state as `EvalState::tag()` (which is the same as `NativeCallContext::tag()`). It is now split into its own variable accessible under `Debugger::state()`. +* Non-borrowed string keys can now be deserialized for object maps via `serde`. Version 1.7.0 diff --git a/tests/serde.rs b/tests/serde.rs index 3d5b7ff7..2d32ed3d 100644 --- a/tests/serde.rs +++ b/tests/serde.rs @@ -817,6 +817,7 @@ fn test_serde_blob() -> Result<(), Box> { } #[test] +#[cfg(not(feature = "no_object"))] fn test_serde_json_borrowed_string() { let value = json!({ "a": "b" }); println!("value: {:?}", value);