Pass owner to file path builder helper function

This commit is contained in:
Matthias Beyer 2015-11-28 12:47:58 +01:00
parent 98ec735ea3
commit c9ebe3b7a1

View file

@ -233,16 +233,8 @@ impl StorageBackend {
fn build_filepath_with_id(&self, owner: &Module, id: FileID) -> String {
debug!("Building filepath with id");
debug!(" basepath: '{}'", self.basepath);
debug!(" storepath: '{}'", self.storepath);
debug!(" id : '{}'", id);
self.prefix_of_files_for_module(owner) + "-" + &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[..]
self.basepath.clone() + owner.name() + "-" + &id[..] + ".imag"
}
}