diff options
Diffstat (limited to 'server/src/commands.rs')
-rw-r--r-- | server/src/commands.rs | 2 |
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")); } |