From f15c20e887a58ae8d65c6d4f240d74a3b74cd55d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 30 Sep 2025 21:33:38 +0200 Subject: clippy; make use of is_some_and and is_none_or --- server/bot/src/algos/customer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/bot/src/algos/customer.rs') diff --git a/server/bot/src/algos/customer.rs b/server/bot/src/algos/customer.rs index cb5c5b59..8a53ac20 100644 --- a/server/bot/src/algos/customer.rs +++ b/server/bot/src/algos/customer.rs @@ -143,7 +143,7 @@ impl CustomerState { game.data .tile_placeable_items .get(&t.kind) - .map_or(true, |p| p.contains(&requested_item)) + .is_none_or(|p| p.contains(&requested_item)) }) { facing = off.as_vec2(); } -- cgit v1.2.3-70-g09d2