This commit is contained in:
Antonio Scandurra
2023-11-02 10:09:08 +01:00
parent bda43ca1fe
commit 51338d785c
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -450,6 +450,9 @@ pub struct WeakModel<T> {
entity_type: PhantomData<T>,
}
unsafe impl<T> Send for WeakModel<T> {}
unsafe impl<T> Sync for WeakModel<T> {}
impl<T> Clone for WeakModel<T> {
fn clone(&self) -> Self {
Self {
+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>>;
}