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:
Andrew Safigan 2023-11-21 10:27:29 +09:00 committed by GitHub
parent 865041de74
commit a22020bf5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
}