From 9af08f93e43470fc02be5bd5d878bad66afd1764 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 24 Sep 2024 12:09:34 -0300 Subject: [PATCH] fix(core): state tests (#11116) --- crates/tauri/src/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/tauri/src/state.rs b/crates/tauri/src/state.rs index 7049b22c4..b0cba3578 100644 --- a/crates/tauri/src/state.rs +++ b/crates/tauri/src/state.rs @@ -197,8 +197,8 @@ mod tests { let state = StateManager::new(); assert!(state.set(1u32)); assert_eq!(*state.get::(), 1); - assert!(state.unmanage::()); - assert!(!state.unmanage::()); + assert!(state.unmanage::().is_some()); + assert!(state.unmanage::().is_none()); assert_eq!(state.try_get::(), None); assert!(state.set(2u32)); assert_eq!(*state.get::(), 2);