From beb8fbdf7fd3da118acdcd275eaa9cea7d621f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=B0=8F=E7=99=BD?= <364772080@qq.com> Date: Fri, 26 Jul 2024 01:42:36 +0800 Subject: [PATCH] windows: Remove unnecessary `Send` and `Sync` implementations (#14659) After a update to `windows-rs 0.57`, these two implementations are no longer needed. Release Notes: - N/A --- Cargo.toml | 1 - crates/gpui/src/platform/windows/dispatcher.rs | 3 --- 2 files changed, 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c5b3397c8551ce27f7ac99a5bd5779d03bfc0af3..779160a6f47460a95a5b2936b14c6e001b133441 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 724b83a6d802b979367d8e91cbd7a6d47194dd4e..abe40d2c2e34dbea065bae22d859e37d3463a498 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 {