Skip to content

Commit c2edfb2

Browse files
committed
Remove excess mutability
1 parent a63f294 commit c2edfb2

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_ecs/src/system/commands

1 file changed

+1
-1
lines changed

crates/bevy_ecs/src/system/commands/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ where
729729
T: Bundle + Clone + 'static,
730730
{
731731
fn write(self, world: &mut World) {
732-
let bundle = if let Some(mut source) = world.get_entity_mut(self.source) {
732+
let bundle = if let Some(source) = world.get_entity(self.source) {
733733
let todo: Option<&T> = todo!("we need a get_bundle on EntityMut");
734734
todo
735735
} else {

0 commit comments

Comments
 (0)