Implement IntoSystemDescriptor for SystemDescriptor (#2718)

# Objective

- Fixes  #2716

## Solution

- Implements the the IntoSystemDescriptor trait for SystemDescriptor, which simply returns itself
This commit is contained in:
Garett Cooper 2021-08-24 17:46:53 +00:00
parent 958f8b124a
commit 47ccebf486

View file

@ -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()