Add back Send and Sync to AssetSource
This commit is contained in:
1 parent
a92e8751bb
commit
fb2f5f1fcc
1 file changed
+1
-1
@@ -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>>;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user