Add back Send and Sync to AssetSource

This commit is contained in:
Antonio Scandurra 2023-11-02 09:58:53 +01:00
parent d5f0e91faa
commit 9c7b45f38b

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>>;
}