Skip to content

Commit

Permalink
IntoSystemConfigs::chain_ignore_deferred's return type fix (#13919)
Browse files Browse the repository at this point in the history
# Objective

Fixes #13917 

## Solution

Changed `IntoSystemSetConfigs::chain_ignore_deferred`'s return type from
`SystemConfigs` to `SystemSetConfigs`

## Testing

Tried to run the `ecs_guide` example, where `chain` method is replaced
by `chain_ignore_deferred` method

---
  • Loading branch information
Jenya705 authored Jun 18, 2024
1 parent 1b0475f commit 6b2d483
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/bevy_ecs/src/schedule/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ where
/// Ordering constraints will be applied between the successive elements.
///
/// Unlike [`chain`](Self::chain) this will **not** add [`apply_deferred`](crate::schedule::apply_deferred) on the edges.
fn chain_ignore_deferred(self) -> SystemConfigs {
fn chain_ignore_deferred(self) -> SystemSetConfigs {
self.into_configs().chain_ignore_deferred()
}
}
Expand Down Expand Up @@ -721,6 +721,10 @@ impl IntoSystemSetConfigs for SystemSetConfigs {
fn chain(self) -> Self {
self.chain_inner()
}

fn chain_ignore_deferred(self) -> Self {
self.chain_ignore_deferred_inner()
}
}

impl<S: SystemSet> IntoSystemSetConfigs for S {
Expand Down

0 comments on commit 6b2d483

Please sign in to comment.