mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
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:
parent
958f8b124a
commit
47ccebf486
1 changed files with 6 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue