diff --git a/Cargo.toml b/Cargo.toml index 267f39523ac..1408ece7320 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ version = "0.2" objc = "0.2.3" [target.'cfg(target_os = "macos")'.dependencies] -cocoa = "0.18.4" +cocoa = "0.19.1" core-foundation = "0.6" core-graphics = "0.17.3" dispatch = "0.1.4" diff --git a/src/platform_impl/macos/window.rs b/src/platform_impl/macos/window.rs index 4c9e3f9b32e..ab19fe7a678 100644 --- a/src/platform_impl/macos/window.rs +++ b/src/platform_impl/macos/window.rs @@ -786,7 +786,7 @@ impl UnownedWindow { // of the menu bar, and this looks broken, so we must make sure // that the menu bar is disabled. This is done in the window // delegate in `window:willUseFullScreenPresentationOptions:`. - msg_send![*self.ns_window, setLevel: ffi::CGShieldingWindowLevel() + 1]; + let () = msg_send![*self.ns_window, setLevel: ffi::CGShieldingWindowLevel() + 1]; }, ( &Some(Fullscreen::Exclusive(RootVideoMode { ref video_mode })),