aboutsummaryrefslogtreecommitdiff
path: root/server/src/commands.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-12-23 12:41:15 +0100
committermetamuffin <metamuffin@disroot.org>2024-12-23 12:41:15 +0100
commit464ebd6fa686d32a16aaa6bd27d8f445caa42f6a (patch)
tree22587801553e44c6d707ca1fac8f3da864ed6ea8 /server/src/commands.rs
parent6ddb571e02dc04b1125669135eab5731523e8f73 (diff)
downloadhurrycurry-464ebd6fa686d32a16aaa6bd27d8f445caa42f6a.tar
hurrycurry-464ebd6fa686d32a16aaa6bd27d8f445caa42f6a.tar.bz2
hurrycurry-464ebd6fa686d32a16aaa6bd27d8f445caa42f6a.tar.zst
clippy: mostly map_or replaced with is_some_and
Diffstat (limited to 'server/src/commands.rs')
-rw-r--r--server/src/commands.rs2
1 files changed, 1 insertions, 1 deletions
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| {
<dyn std::any::Any>::downcast_ref::<Tutorial>(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"));
}