From 5aa72279aa20819eaf9977a8dd13dfdba93baace Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sun, 27 Jul 2014 15:11:59 +0200 Subject: Window is now NoSend --- src/lib.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index eb84bfd..dfbe518 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,7 +20,8 @@ mod events; mod hints; pub struct Window { - window: winimpl::Window + window: winimpl::Window, + nosend: std::kinds::marker::NoSend, } impl Window { @@ -29,7 +30,10 @@ impl Window { -> Result { let win = try!(winimpl::Window::new(dimensions, title, hints)); - Ok(Window{window: win}) + Ok(Window{ + window: win, + nosend: std::kinds::marker::NoSend, + }) } /// Returns true if the window has been closed by the user. -- cgit v1.2.3