From 42ac04c1a8d70b0495909c9ed693f00aef3b9318 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 10 Nov 2015 20:53:35 +0100 Subject: [PATCH] Implement StorageBackend::new() --- src/storage/backend.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/storage/backend.rs b/src/storage/backend.rs index 587b54ae..e09a1a17 100644 --- a/src/storage/backend.rs +++ b/src/storage/backend.rs @@ -16,7 +16,11 @@ pub struct StorageBackend<'a> { impl<'a> StorageBackend<'a> { - fn new() -> StorageBackend<'a> { + fn new(bashpath: String, module: &'a Module) -> StorageBackend<'a> { + StorageBackend { + basepath: basepath, + module: module, + } } fn getFileList() -> Vec<(String, FileID)> {