From a1228b39a1a867f95379e3a9454e4f90e282d3bc Mon Sep 17 00:00:00 2001 From: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 Date: Tue, 4 Aug 2026 22:14:18 -0400 Subject: [PATCH] fix(desktop): replace map_or(false,...) with is_some_and per clippy Resolve clippy::unnecessary-map-or in import_tests.rs from the P3 completion commit. No logic change. Co-authored-by: Will Pfleger Signed-off-by: Will Pfleger --- .../src-tauri/src/commands/personas/snapshot/import_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/src-tauri/src/commands/personas/snapshot/import_tests.rs b/desktop/src-tauri/src/commands/personas/snapshot/import_tests.rs index 63f61d965..c0e0efc89 100644 --- a/desktop/src-tauri/src/commands/personas/snapshot/import_tests.rs +++ b/desktop/src-tauri/src/commands/personas/snapshot/import_tests.rs @@ -404,7 +404,7 @@ async fn test_agent_switch_between_store_and_profile_finishes_captured_outbound( assert!( memory_relay_seen .as_deref() - .map_or(false, |r| r.contains("captured.example")), + .is_some_and(|r| r.contains("captured.example")), "memory adapter relay_url must contain captured relay 'captured.example', \ got: {memory_relay_seen:?}" );