diff options
Diffstat (limited to 'server/src/commands.rs')
-rw-r--r-- | server/src/commands.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/server/src/commands.rs b/server/src/commands.rs index 5be9e662..a0702a05 100644 --- a/server/src/commands.rs +++ b/server/src/commands.rs @@ -341,7 +341,6 @@ impl Server { .data .get_item_by_name(&item) .ok_or(tre!("s.error.item_not_found", s = item))?; - #[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()) .is_some_and(|t| t.player == player) @@ -351,7 +350,6 @@ impl Server { self.entities.push(Box::new(Tutorial::new(player, item))); } Command::EndTutorial => { - #[cfg(not(test))] // TODO rust-analyser does not undestand trait upcasting if let Some(tutorial) = self .entities .iter_mut() |