Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add back Send and Sync to AssetSource

Antonio Scandurra9c7b45f38bdc
diff --git a/crates/gpui2/src/assets.rs b/crates/gpui2/src/assets.rs
index baf75b8aabc..39c8562b697 100644
--- a/crates/gpui2/src/assets.rs
+++ b/crates/gpui2/src/assets.rs
@@ -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>>;
}