mirror of
https://github.com/storytold/winit.git
synced 2026-11-24 13:20:44 +01:00
Window is now NoSend
This commit is contained in:
1 parent
4028b925d3
commit
5aa72279aa
1 file changed
+6
-2
+6
-2
@@ -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<Window, String>
|
||||
{
|
||||
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.
|
||||
|
||||
Reference in new issue
Block a user