Skip to content

Commit

Permalink
rename enqueue_command to queue_command for consistency (#16753)
Browse files Browse the repository at this point in the history
# Objective

Fixes #16752

## Solution
Renamed the 3 remaining instances of `enqueue_command` to
`queue_command`

## Testing
- Built locally

## Migration Guide

All instances of the `enqueue_command` method have been renamed to
`queue_command`.
  • Loading branch information
spvky authored Dec 11, 2024
1 parent 9098973 commit 40392a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_hierarchy/src/child_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ pub trait ChildBuild {
fn parent_entity(&self) -> Entity;

/// Adds a command to be executed, like [`Commands::queue`].
fn enqueue_command<C: Command>(&mut self, command: C) -> &mut Self;
fn queue_command<C: Command>(&mut self, command: C) -> &mut Self;
}

impl ChildBuild for ChildBuilder<'_> {
Expand All @@ -330,7 +330,7 @@ impl ChildBuild for ChildBuilder<'_> {
self.add_children.parent
}

fn enqueue_command<C: Command>(&mut self, command: C) -> &mut Self {
fn queue_command<C: Command>(&mut self, command: C) -> &mut Self {
self.commands.queue(command);
self
}
Expand Down Expand Up @@ -573,7 +573,7 @@ impl ChildBuild for WorldChildBuilder<'_> {
self.parent
}

fn enqueue_command<C: Command>(&mut self, command: C) -> &mut Self {
fn queue_command<C: Command>(&mut self, command: C) -> &mut Self {
command.apply(self.world);
self
}
Expand Down

0 comments on commit 40392a8

Please sign in to comment.