Refactor helpers for more fine-grained possibilities

This commit is contained in:
Matthias Beyer 2015-11-24 10:59:16 +01:00
parent 4464c32b98
commit 176183e718
1 changed files with 5 additions and 1 deletions

View File

@ -125,7 +125,11 @@ impl StorageBackend {
}
fn build_filepath(&self, f: &File) -> String {
self.basepath + &f.id()[..]
self.build_filepath_with_id(f.id())
}
fn build_filepath_with_id(&self, id: FileID) -> String {
self.basepath + &id[..]
}
}