From 464ebd6fa686d32a16aaa6bd27d8f445caa42f6a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 23 Dec 2024 12:41:15 +0100 Subject: clippy: mostly map_or replaced with is_some_and --- server/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/commands.rs') diff --git a/server/src/commands.rs b/server/src/commands.rs index 24752cc5..5daedda9 100644 --- a/server/src/commands.rs +++ b/server/src/commands.rs @@ -334,7 +334,7 @@ impl Server { #[cfg(not(test))] // TODO rust-analyser does not undestand trait upcasting if self.entities.iter().any(|e| { ::downcast_ref::(e.as_ref()) - .map_or(false, |t| t.player == player) + .is_some_and(|t| t.player == player) }) { return Err(tre!("s.error.tutorial_already_running")); } -- cgit v1.2.3-70-g09d2