Pass owner to file path builder helper function
This commit is contained in:
parent
98ec735ea3
commit
c9ebe3b7a1
1 changed files with 1 additions and 9 deletions
|
@ -233,16 +233,8 @@ impl StorageBackend {
|
||||||
fn build_filepath_with_id(&self, owner: &Module, id: FileID) -> String {
|
fn build_filepath_with_id(&self, owner: &Module, id: FileID) -> String {
|
||||||
debug!("Building filepath with id");
|
debug!("Building filepath with id");
|
||||||
debug!(" basepath: '{}'", self.basepath);
|
debug!(" basepath: '{}'", self.basepath);
|
||||||
debug!(" storepath: '{}'", self.storepath);
|
|
||||||
debug!(" id : '{}'", id);
|
debug!(" id : '{}'", id);
|
||||||
self.prefix_of_files_for_module(owner) + "-" + &id[..] + ".imag"
|
self.basepath.clone() + owner.name() + "-" + &id[..] + ".imag"
|
||||||
}
|
|
||||||
|
|
||||||
fn build_filepath_with_id(&self, id: FileID) -> String {
|
|
||||||
debug!("Building filepath with id");
|
|
||||||
debug!(" basepath: '{}'", self.basepath);
|
|
||||||
debug!(" id : '{}'", id);
|
|
||||||
self.basepath.clone() + &id[..]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue