Fix: Module functions should get &self, not self

This commit is contained in:
Matthias Beyer 2015-10-19 17:38:39 +02:00
parent 170d57cbdf
commit 1d98cf7634

View file

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