mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
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:
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:?}"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user