From 14b44bdbd5dcc5c743dfb0e0197de6c4065a2821 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 3 Jun 2025 21:16:49 +0200 Subject: cleanup old todos --- server/src/commands.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'server/src/commands.rs') 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| { ::downcast_ref::(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() -- cgit v1.2.3-70-g09d2