Skip to content

Commit

Permalink
Implement IntoSystemDescriptor for SystemDescriptor (#2718)
Browse files Browse the repository at this point in the history
# Objective

- Fixes  #2716

## Solution

- Implements the the IntoSystemDescriptor trait for SystemDescriptor, which simply returns itself
  • Loading branch information
GarettCooper committed Aug 24, 2021
1 parent 958f8b1 commit 47ccebf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/bevy_ecs/src/schedule/system_descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ where
}
}

impl IntoSystemDescriptor<()> for SystemDescriptor {
fn into_descriptor(self) -> SystemDescriptor {
self
}
}

impl IntoSystemDescriptor<()> for BoxedSystem<(), ()> {
fn into_descriptor(self) -> SystemDescriptor {
new_parallel_descriptor(self).into_descriptor()
Expand Down

0 comments on commit 47ccebf

Please sign in to comment.