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.

windows: Remove unnecessary `Send` and `Sync` implementations (#14659)

张小白beb8fbdf7fd3
diff --git a/Cargo.toml b/Cargo.toml
index c5b3397c855..779160a6f47 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -465,7 +465,6 @@ features = [
"Win32_Security",
"Win32_Security_Credentials",
"Win32_Storage_FileSystem",
- "Win32_System_LibraryLoader",
"Win32_System_Com",
"Win32_System_Com_StructuredStorage",
"Win32_System_DataExchange",
diff --git a/crates/gpui/src/platform/windows/dispatcher.rs b/crates/gpui/src/platform/windows/dispatcher.rs
index 724b83a6d80..abe40d2c2e3 100644
--- a/crates/gpui/src/platform/windows/dispatcher.rs
+++ b/crates/gpui/src/platform/windows/dispatcher.rs
@@ -31,9 +31,6 @@ pub(crate) struct WindowsDispatcher {
main_thread_id: ThreadId,
}
-unsafe impl Send for WindowsDispatcher {}
-unsafe impl Sync for WindowsDispatcher {}
-
impl WindowsDispatcher {
pub(crate) fn new() -> Self {
let controller = unsafe {