From 555e058fe6cb0b76d20a32f5cb69b3832908bc63 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 6 Dec 2026 10:01:05 +0100 Subject: [PATCH] thing-core(tests): fix test types in input/tests.rs and frame.rs --- crates/thing-core/src/frame.rs | 2 +- crates/thing-core/src/input/tests.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/thing-core/src/frame.rs b/crates/thing-core/src/frame.rs index 33c6062..4928c29 100644 --- a/crates/thing-core/src/frame.rs +++ b/crates/thing-core/src/frame.rs @@ -396,7 +396,7 @@ mod tests { let entry = Entry { address: addr.clone(), record: Record::State { - schema: addr.schema, + schema: addr.schema.clone(), value: StateValue::Record(vec![(field.into(), StateValue::Bool(value))]), }, }; diff --git a/crates/thing-core/src/input/tests.rs b/crates/thing-core/src/input/tests.rs index cc9f046..1ae745e 100644 --- a/crates/thing-core/src/input/tests.rs +++ b/crates/thing-core/src/input/tests.rs @@ -1207,7 +1207,7 @@ fn session_overlay_skips_focus_order_hits_rows_without_blurring_and_light_dismis assert!(rig.input.session().is_none(), "{mode:?}"); assert_eq!(rig.input.focus().node(), Some(&nid("pick")), "{mode:?}: focus stays on owner"); assert_eq!(commands_of(&rig.minted()), ["choose"], "{mode:?}"); - assert_eq!(rig.draft("pick"), Some(&InputValue::Choice(ChoiceValue { value: "b".into() })), "{mode:?}"); + assert_eq!(rig.draft("pick"), Some(InputValue::Choice(ChoiceValue { value: "b".into() })), "{mode:?}"); // Re-open session: clicking outside (on blank background) light-dismisses and clears focus. rig.input.open_session(select_session("pick"));