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

View File

@ -73,7 +73,7 @@ impl DataStore {
match store.insert(texture.clone())? { match store.insert(texture.clone())? {
true => (), true => (),
false => { 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()) 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!(); unimplemented!();
} }