summary history branches tags files
commit:7f0b10ebd5d1b80ffee8bf7722dbe024b95ab35d
author:Trevor Bentley
committer:Trevor Bentley
date:Mon Apr 2 15:06:56 2018 +0200
parents:bd7e23f6a41c3288a832f1462cce68b6ef96f9fc
Fix msg_send return types on submenu changes
diff --git a/src/osx/mod.rs b/src/osx/mod.rs
line changes: +4/-4
index e453e41..26629ee
--- a/src/osx/mod.rs
+++ b/src/osx/mod.rs
@@ -188,11 +188,11 @@ impl TStatusBar for OSXStatusBar {
             self.object.add_callback(app_menu_item, callback);
             let objc = self.object.take_objc();
             let _: () = msg_send![app_menu_item, setTarget: objc];
-            let _ = msg_send![app_menu_item, setSubmenu: submenu];
-            let _ = msg_send![txt, release];
-            let _ = msg_send![quit_key, release];
+            let _: () = msg_send![app_menu_item, setSubmenu: submenu];
+            let _: () = msg_send![txt, release];
+            let _: () = msg_send![quit_key, release];
             self.menu_bar.addItem_(app_menu_item);
-            let _ = msg_send![app_menu_item, release];
+            let _: () = msg_send![app_menu_item, release];
             submenu
         }
     }