summary history branches tags files
commit:bd0a30d94d82cf28493b339a45fbbab9cf0dd30c
author:Trevor Bentley
committer:Trevor Bentley
date:Mon Nov 16 18:03:17 2020 +0100
parents:fca83cacd4004e542d131718c18d86f41e781a35
fix missing msg_send type annotations
diff --git a/src/touchbar.rs b/src/touchbar.rs
line changes: +5/-5
index 549b81c..b496cd7
--- a/src/touchbar.rs
+++ b/src/touchbar.rs
@@ -821,16 +821,16 @@ impl TTouchbar for Touchbar {
                 let cls = Class::get("NSTouchBar").unwrap();
                 match util::get_appkit_version() >= AppKitVersion::from_tuple(10, 14) {
                     true => {
-                        msg_send![cls, minimizeSystemModalTouchBar: old_bar];
-                        msg_send![cls, dismissSystemModalTouchBar: old_bar];
+                        let _: () = msg_send![cls, minimizeSystemModalTouchBar: old_bar];
+                        let _: () = msg_send![cls, dismissSystemModalTouchBar: old_bar];
                     },
                     false => {
-                        msg_send![cls, minimizeSystemModalFunctionBar: old_bar];
-                        msg_send![cls, dismissSystemModalFunctionBar: old_bar];
+                        let _: () = msg_send![cls, minimizeSystemModalFunctionBar: old_bar];
+                        let _: () = msg_send![cls, dismissSystemModalFunctionBar: old_bar];
                     },
                 }
                 self.free_bar_allocations(old_bar);
-                msg_send![old_bar, release];
+                let _: () = msg_send![old_bar, release];
             }
             let _ : () = msg_send![self.objc, setGroupTouchBar: bar_id];
             let ident = self.find_bar_ident(&bar_id).unwrap();