diff --git a/crates/bevy_ecs/src/system/commands/mod.rs b/crates/bevy_ecs/src/system/commands/mod.rs index d8d2914187..d752d80808 100644 --- a/crates/bevy_ecs/src/system/commands/mod.rs +++ b/crates/bevy_ecs/src/system/commands/mod.rs @@ -832,6 +832,7 @@ pub trait EntityCommand: Send + 'static { /// You can override the provided implementation if you can return a `Command` with a smaller memory /// footprint than `(Entity, Self)`. /// In most cases the provided implementation is sufficient. + #[must_use = "commands do nothing unless applied to a `World`"] fn with_entity(self, entity: Entity) -> impl Command where Self: Sized,