From 2eed9d67f40cdd26e8db175a9ca0d3aa39509986 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 17 Jan 2020 09:23:30 -0800 Subject: [PATCH] fixup windows build --- window/src/os/windows/window.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/window/src/os/windows/window.rs b/window/src/os/windows/window.rs index e29393454..7c37accfe 100644 --- a/window/src/os/windows/window.rs +++ b/window/src/os/windows/window.rs @@ -212,7 +212,7 @@ impl Window { } } -fn schedule_show_window(hwnd: HWindow, show: bool) -> Future<()> { +fn schedule_show_window(hwnd: HWindow, show: bool) { // ShowWindow can call to the window proc and may attempt // to lock inner, so we avoid locking it ourselves here promise::spawn::spawn(async move { @@ -317,11 +317,13 @@ impl WindowOps for Window { } fn show(&self) -> Future<()> { - schedule_show_window(self.0, true) + schedule_show_window(self.0, true); + Future::ok(()) // FIXME: this is a lie! } fn hide(&self) -> Future<()> { - schedule_show_window(self.0, false) + schedule_show_window(self.0, false); + Future::ok(()) // FIXME: this is a lie! } fn set_cursor(&self, cursor: Option) -> Future<()> {