Skip to content

Commit

Permalink
Remove excess mutability
Browse files Browse the repository at this point in the history
  • Loading branch information
hlbarber committed Jan 31, 2022
1 parent 9bf1951 commit 62084ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/system/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ where
T: Bundle + Clone + 'static,
{
fn write(self, world: &mut World) {
let bundle = if let Some(mut source) = world.get_entity_mut(self.source) {
let bundle = if let Some(source) = world.get_entity(self.source) {
let todo: Option<&T> = todo!("we need a get_bundle on EntityMut");
todo
} else {
Expand Down

0 comments on commit 62084ac

Please sign in to comment.