images: make promise payload optional to take easily
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@ use std::path::{self};
|
||||
use std::path::{Path, PathBuf};
|
||||
use tracing::warn;
|
||||
|
||||
pub type MediaCacheValue = Promise<Result<TexturedImage>>;
|
||||
pub type MediaCacheValue = Promise<Option<Result<TexturedImage>>>;
|
||||
pub type MediaCacheMap = HashMap<String, MediaCacheValue>;
|
||||
|
||||
#[derive(Default)]
|
||||
|
||||
Reference in New Issue
Block a user