bevy/crates/bevy_ecs/src
Joseph a6feb5ba74
Emit a warning if the result of EntityCommand::with_entity is not used (#14028)
When using combinators such as `EntityCommand::with_entity` to build
commands, it can be easy to forget to apply that command, leading to
dead code. In many cases this doesn't even lead to an unused variable
warning, which can make these mistakes difficult to track down

Annotate the method with `#[must_use]`

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2024-06-26 21:56:23 +02:00
..
entity Don't show .to_bits in Display impl for Entity (#14011) 2024-06-26 00:16:22 +02:00
identifier feat: Reflection implementations on Identifier (#13648) 2024-06-03 16:33:14 +00:00
observer Make Observer::with_event (and other variants) unsafe (#13954) 2024-06-21 20:53:13 +02:00
query AnyOf soundness fix (#14013) 2024-06-26 02:31:20 +02:00
reflect Map entities from a resource when written to the world. (#13650) 2024-06-03 16:33:24 +00:00
schedule Add on_unimplemented Diagnostics to Most Public Traits (#13347) (#13662) 2024-06-04 00:31:34 +00:00
storage Fix uses of "it's" vs "its". (#13033) 2024-04-19 18:17:31 +00:00
system Emit a warning if the result of EntityCommand::with_entity is not used (#14028) 2024-06-26 21:56:23 +02:00
world Generalised ECS reactivity with Observers (#10839) (#13873) 2024-06-16 11:44:08 -04:00
archetype.rs Update observer archetype flags for sparse components (#13886) 2024-06-19 04:14:58 +02:00
batching.rs Parallel event reader (#12554) 2024-04-22 16:37:42 +00:00
bundle.rs Generalised ECS reactivity with Observers (#10839) (#13873) 2024-06-16 11:44:08 -04:00
change_detection.rs Implement WorldQuery and QueryData on Mut. (#13338) 2024-05-14 12:38:31 +00:00
component.rs Revert "constrain WorldQuery::init_state argument to ComponentInitial… (#13804) 2024-06-12 01:20:47 +02:00
event.rs Fixing par_read targetting 0.14 branch (#14014) 2024-06-26 00:09:00 +02:00
intern.rs Moves intern and label modules into bevy_ecs (#12772) 2024-04-08 15:34:11 +00:00
label.rs Use ptr::from_ref and ptr::addr_eq in macro (#13081) 2024-04-24 01:54:24 +00:00
lib.rs Generalised ECS reactivity with Observers (#10839) (#13873) 2024-06-16 11:44:08 -04:00
removal_detection.rs Remove extra call to clear_trackers (#13762) 2024-06-10 20:23:06 +02:00