bevy/crates/bevy_ecs/src
Boxy 404b4fc0eb lifetime related cleanup in entity_ref.rs (#5611)
# Objective

EntityMut::world takes &mut self instead of &self I don't see any reason for this.
EntityRef is overly restrictive with fn world and could return &'w World

---

## Changelog

- EntityRef now implements Copy and Clone
- EntityRef::world is now fn(&self) -> &'w World instead of fn(&mut self) -> &World
- EntityMut::world is now fn(&self) -> &World instead of fn(&mut self) -> &World
2022-09-12 04:34:52 +00:00
..
entity Make most Entity methods const (#5688) 2022-08-30 03:16:22 +00:00
query Update WorldQueryGats doc with type aliases (#5898) 2022-09-06 21:24:40 +00:00
schedule Move ambiguity detection into its own file (#5918) 2022-09-09 18:44:47 +00:00
storage Remove insert_resource_with_id (#5608) 2022-08-30 20:32:15 +00:00
system Remove Sync bound from Local (#5483) 2022-09-12 04:15:55 +00:00
world lifetime related cleanup in entity_ref.rs (#5611) 2022-09-12 04:34:52 +00:00
archetype.rs Fix various typos (#5417) 2022-07-21 20:46:54 +00:00
bundle.rs add more SAFETY comments and lint for missing ones in bevy_ecs (#4835) 2022-07-04 14:44:24 +00:00
change_detection.rs relax Sized bounds around change detection types (#5917) 2022-09-09 21:26:36 +00:00
component.rs add more SAFETY comments and lint for missing ones in bevy_ecs (#4835) 2022-07-04 14:44:24 +00:00
event.rs Miscellaneous code-quality improvements. (#5860) 2022-09-05 00:30:21 +00:00
lib.rs Remove ambiguity sets (#5916) 2022-09-09 17:21:50 +00:00
reflect.rs remove ReflectMut in favor of Mut<dyn Reflect> (#5630) 2022-08-09 16:19:34 +00:00