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 <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7
2026-08-04 22:14:18 -04:00
co-authored by Will Pfleger
parent 48015b838c
commit a1228b39a1
@@ -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:?}"
);