Skip to content

Commit b48ee02

Browse files
committed
Make Remove Command's fields public (#2449)
In #2034, the `Remove` Command did not get the same treatment as the rest of the commands. There's no discussion saying it shouldn't have public fields, so I am assuming it was an oversight. This fixes that oversight.
1 parent 17bd3f9 commit b48ee02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_ecs/src/system/commands.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ where
359359

360360
#[derive(Debug)]
361361
pub struct Remove<T> {
362-
entity: Entity,
363-
phantom: PhantomData<T>,
362+
pub entity: Entity,
363+
pub phantom: PhantomData<T>,
364364
}
365365

366366
impl<T> Command for Remove<T>

0 commit comments

Comments
 (0)