Fix: Module functions should get &self, not self
This commit is contained in:
parent
170d57cbdf
commit
1d98cf7634
1 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,8 @@ use std::error::Error;
|
||||||
|
|
||||||
pub trait Module {
|
pub trait Module {
|
||||||
|
|
||||||
fn load(self, &rt : Runtime) -> Self;
|
fn load(&self, &rt : Runtime) -> Self;
|
||||||
fn name(self) -> String;
|
fn name(&self) -> String;
|
||||||
|
|
||||||
fn execute(&self, &rt : Runtime) -> Option<Error>;
|
fn execute(&self, &rt : Runtime) -> Option<Error>;
|
||||||
fn shutdown(&self, &rt : Runtime) -> Option<Error>;
|
fn shutdown(&self, &rt : Runtime) -> Option<Error>;
|
||||||
|
|
Loading…
Reference in a new issue