From b79a7fbcf5678a40204bb14f735034aeb0985a59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sun, 29 Nov 2020 15:40:47 +0100 Subject: [PATCH] Add Send constraint to WindowHandler::Message --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 47a95a8..05c263f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -30,7 +30,7 @@ pub enum Parent { unsafe impl Send for Parent {} pub trait WindowHandler { - type Message; + type Message: Send; fn on_frame(&mut self); fn on_event(&mut self, window: &mut Window, event: Event);