From 97f973d685baf389dcde08044dd3dfb7ba556050 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 6 Apr 2024 14:17:30 +0200 Subject: refactor(ecs): fix Clippy lints --- ecs/src/actions.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ecs/src/actions.rs') diff --git a/ecs/src/actions.rs b/ecs/src/actions.rs index c58b06b..ea4837a 100644 --- a/ecs/src/actions.rs +++ b/ecs/src/actions.rs @@ -15,6 +15,9 @@ pub struct Actions<'world> impl<'world> Actions<'world> { /// Adds a spawning a new entity to the action queue. + /// + /// # Panics + /// Will panic if a mutable internal lock cannot be acquired. pub fn spawn(&mut self, components: Comps) { self.world_data -- cgit v1.2.3-18-g5258