summary history branches tags files
commit:7eecc09b36bcb54892430e005a83366f94646a53
author:Trevor Bentley
committer:Trevor Bentley
date:Sun May 7 22:48:29 2017 +0200
parents:e099c2943eb7c12950f84fa3e3d469c27346116e
Fix mutability difference between Win and OSX
diff --git a/src/osx/mod.rs b/src/osx/mod.rs
line changes: +1/-1
index 7a37d2a..9d16390
--- a/src/osx/mod.rs
+++ b/src/osx/mod.rs
@@ -97,7 +97,7 @@ impl TStatusBar for OSXStatusBar {
             let _ = msg_send![old_menu, release];
         }
     }
-    fn set_tooltip(&self, text: &str) {
+    fn set_tooltip(&mut self, text: &str) {
         unsafe {
             let img = NSString::alloc(nil).init_str(text);
             let _ = msg_send![self.status_bar_item.button(), setToolTip: img];