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
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@ use std::error::Error;
pub trait Module {
fn load(self, &rt : Runtime) -> Self;
fn name(self) -> String;
fn load(&self, &rt : Runtime) -> Self;
fn name(&self) -> String;
fn execute(&self, &rt : Runtime) -> Option<Error>;
fn shutdown(&self, &rt : Runtime) -> Option<Error>;