Skip to content

Commit 687f47a

Browse files
cargo fmt
1 parent 49df236 commit 687f47a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

crates/bevy_plugin/src/commands/execution.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ pub(crate) fn command_execution_plugin(app: &mut App) {
77
app.add_observer(execute_commands);
88
}
99

10-
fn execute_commands(
11-
event: On<ExecuteCommand>,
12-
mut commands: Commands,
13-
) {
10+
fn execute_commands(event: On<ExecuteCommand>, mut commands: Commands) {
1411
let event = event.clone();
1512
commands.queue(move |world: &mut World| {
1613
let Some(mut command) = clone_command(world, &event) else {
@@ -25,10 +22,7 @@ fn execute_commands(
2522
});
2623
}
2724

28-
fn clone_command(
29-
world: &mut World,
30-
event: &ExecuteCommand,
31-
) -> Option<Box<dyn UntypedYarnCommand>> {
25+
fn clone_command(world: &mut World, event: &ExecuteCommand) -> Option<Box<dyn UntypedYarnCommand>> {
3226
let dialogue_runner = get_dialogue_runner(world, event.entity);
3327
let command_name = event.command.name.as_str();
3428
dialogue_runner
@@ -43,7 +37,6 @@ fn get_dialogue_runner(world: &mut World, entity: Entity) -> &DialogueRunner {
4337
(dialogue_runners.get(world, entity).unwrap()) as _
4438
}
4539

46-
4740
fn get_dialogue_runner_mut(world: &mut World, entity: Entity) -> Mut<'_, DialogueRunner> {
4841
let mut dialogue_runners = world.query::<&mut DialogueRunner>();
4942

0 commit comments

Comments
 (0)