From bff2bf68c65094998e3840fb3a9ee3ca6ba45379 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 23 Nov 2015 18:45:31 +0100 Subject: [PATCH] We dont need to pass the module here --- src/storage/backend.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/storage/backend.rs b/src/storage/backend.rs index 372edd54..8ea66cde 100644 --- a/src/storage/backend.rs +++ b/src/storage/backend.rs @@ -11,21 +11,18 @@ use glob::Paths; use storage::file::File; use storage::file_id::*; -use module::Module; type BackendOperationResult = Result<(), StorageBackendError>; -pub struct StorageBackend<'a> { +pub struct StorageBackend { 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 { basepath: basepath, - module: module, } }