Add back Send and Sync to AssetSource

This commit is contained in:
Antonio Scandurra committed 2023-11-02 09:58:53 +01:00
1 parent a92e8751bb
commit fb2f5f1fcc
1 file changed
+1 -1
+1 -1
View File
@@ -8,7 +8,7 @@ use std::{
sync::atomic::{AtomicUsize, Ordering::SeqCst},
};
pub trait AssetSource: 'static {
pub trait AssetSource: 'static + Send + Sync {
fn load(&self, path: &str) -> Result<Cow<[u8]>>;
fn list(&self, path: &str) -> Result<Vec<SharedString>>;
}