panic on missing Texture on Disk

Until we have a better idea
This commit is contained in:
CodeSteak 2019-05-05 19:39:08 +02:00
parent 156912d4f6
commit 88ba7a6dd3
1 changed files with 6 additions and 2 deletions

View File

@ -73,7 +73,7 @@ impl DataStore {
match store.insert(texture.clone())? {
true => (),
false => {
println!("inserting {:#?} failed !!!", texture); // TODO: What should be done?
panic!("inserting {:#?} failed !!!", texture); // TODO: What should be done?
}
}
}
@ -171,7 +171,11 @@ impl DataStore {
f.store(self.index_file_path().as_path())
}
pub fn get_texture_preview(&mut self, hash: &Sha256, desired_format : TextureFormat) -> TextureFileResult {
pub fn get_texture_preview(
&mut self,
hash: &Sha256,
desired_format: TextureFormat,
) -> TextureFileResult {
unimplemented!();
}