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);