mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 21:37:56 +00:00
Subsystem::start takes self by-value (#1325)
* Subsystem::start takes self by-value * fix doc-test compilation
This commit is contained in:
committed by
GitHub
parent
cb59245085
commit
2a3e607d14
@@ -146,5 +146,5 @@ pub trait SubsystemContext: Send + 'static {
|
||||
/// [`Subsystem`]: trait.Subsystem.html
|
||||
pub trait Subsystem<C: SubsystemContext> {
|
||||
/// Start this `Subsystem` and return `SpawnedSubsystem`.
|
||||
fn start(&mut self, ctx: C) -> SpawnedSubsystem;
|
||||
fn start(self, ctx: C) -> SpawnedSubsystem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user