Make impl block for RemovedSystem generic (#10651)
# Objective Make the impl block for RemovedSystem generic so that the methods can be called for systems that have inputs or outputs. ## Solution Simply adding generics to the impl block.
This commit is contained in:
parent
865041de74
commit
a22020bf5c
@ -21,7 +21,7 @@ pub struct RemovedSystem<I = (), O = ()> {
|
||||
system: BoxedSystem<I, O>,
|
||||
}
|
||||
|
||||
impl RemovedSystem {
|
||||
impl<I, O> RemovedSystem<I, O> {
|
||||
/// Is the system initialized?
|
||||
/// A system is initialized the first time it's ran.
|
||||
pub fn initialized(&self) -> bool {
|
||||
@ -29,7 +29,7 @@ impl RemovedSystem {
|
||||
}
|
||||
|
||||
/// The system removed from the storage.
|
||||
pub fn system(self) -> BoxedSystem {
|
||||
pub fn system(self) -> BoxedSystem<I, O> {
|
||||
self.system
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user