File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
crates/tauri-runtime-wry/src Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,7 @@ pub(crate) fn send_user_message<T: UserEvent>(
253253 }
254254}
255255
256+ unsafe impl < T : UserEvent > Send for Context < T > { }
256257unsafe impl < T : UserEvent > Sync for Context < T > { }
257258
258259#[ derive( Clone ) ]
@@ -430,10 +431,6 @@ pub enum ActiveTracingSpan {
430431#[ derive( Debug ) ]
431432pub struct WindowsStore ( pub RefCell < BTreeMap < WindowId , WindowWrapper > > ) ;
432433
433- // SAFETY: we ensure this type is only used on the main thread.
434- #[ allow( clippy:: non_send_fields_in_send_ty) ]
435- unsafe impl Send for WindowsStore { }
436-
437434#[ derive( Debug , Clone ) ]
438435pub struct DispatcherMainThreadContext < T : UserEvent > {
439436 pub window_target : EventLoopWindowTarget < Message < T > > ,
@@ -444,10 +441,6 @@ pub struct DispatcherMainThreadContext<T: UserEvent> {
444441 pub active_tracing_spans : ActiveTraceSpanStore ,
445442}
446443
447- // SAFETY: we ensure this type is only used on the main thread.
448- #[ allow( clippy:: non_send_fields_in_send_ty) ]
449- unsafe impl < T : UserEvent > Send for DispatcherMainThreadContext < T > { }
450-
451444impl < T : UserEvent > fmt:: Debug for Context < T > {
452445 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
453446 f. debug_struct ( "Context" )
You can’t perform that action at this time.
0 commit comments