We dont need to pass the module here
This commit is contained in:
parent
9aced858ac
commit
bff2bf68c6
1 changed files with 3 additions and 6 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue