panic on missing Texture on Disk
Until we have a better idea
This commit is contained in:
		@ -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!();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user