Add back Send and Sync to AssetSource
This commit is contained in:
parent
d5f0e91faa
commit
9c7b45f38b
1 changed files with 1 additions and 1 deletions
|
@ -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>>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue