Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information