We dont need to pass the module here

This commit is contained in:
Matthias Beyer 2015-11-23 18:45:31 +01:00
parent 9aced858ac
commit bff2bf68c6

View file

@ -11,21 +11,18 @@ use glob::Paths;
use storage::file::File; use storage::file::File;
use storage::file_id::*; use storage::file_id::*;
use module::Module;
type BackendOperationResult = Result<(), StorageBackendError>; type BackendOperationResult = Result<(), StorageBackendError>;
pub struct StorageBackend<'a> { pub struct StorageBackend {
basepath: String, basepath: String,
module: &'a Module,
} }
impl<'a> StorageBackend<'a> { impl StorageBackend {
fn new(basepath: String, module: &'a Module) -> StorageBackend<'a> { fn new(basepath: String) -> StorageBackend {
StorageBackend { StorageBackend {
basepath: basepath, basepath: basepath,
module: module,
} }
} }