Skip to content

Commit

Permalink
Make Remove Command's fields public (#2449)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
isHavvy committed Jul 12, 2021
1 parent 17bd3f9 commit b48ee02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/system/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ where

#[derive(Debug)]
pub struct Remove<T> {
entity: Entity,
phantom: PhantomData<T>,
pub entity: Entity,
pub phantom: PhantomData<T>,
}

impl<T> Command for Remove<T>
Expand Down

0 comments on commit b48ee02

Please sign in to comment.