Don't assume `BOOL` is a boolean

Antonio Scandurra created

Change summary

crates/gpui/src/platform/mac/status_item.rs                             | 2 
crates/gpui/src/platform/mac/window.rs                                  | 4 
crates/live_kit/LiveKitBridge/Sources/LiveKitBridge/LiveKitBridge.swift | 2 
3 files changed, 4 insertions(+), 4 deletions(-)

Detailed changes

crates/gpui/src/platform/mac/status_item.rs 🔗

@@ -144,7 +144,7 @@ impl StatusItem {
                 Weak::into_raw(Rc::downgrade(&state)) as *const c_void,
             );
             native_view.setWantsBestResolutionOpenGLSurface_(YES);
-            native_view.setWantsLayer(true);
+            native_view.setWantsLayer(YES);
             let _: () = msg_send![
                 native_view,
                 setLayerContentsRedrawPolicy: NSViewLayerContentsRedrawDuringViewResize

crates/gpui/src/platform/mac/window.rs 🔗

@@ -450,7 +450,7 @@ impl Window {
                 native_window.setTitle_(NSString::alloc(nil).init_str(title));
             }
 
-            native_window.setMovable_(options.is_movable);
+            native_window.setMovable_(options.is_movable as BOOL);
 
             if options
                 .titlebar
@@ -1077,7 +1077,7 @@ fn window_fullscreen_changed(this: &Object, is_fullscreen: bool) {
 extern "C" fn window_did_change_key_status(this: &Object, selector: Sel, _: id) {
     let window_state = unsafe { get_window_state(this) };
     let window_state_borrow = window_state.borrow();
-    let is_active = unsafe { window_state_borrow.native_window.isKeyWindow() };
+    let is_active = unsafe { window_state_borrow.native_window.isKeyWindow() as bool };
 
     // When opening a pop-up while the application isn't active, Cocoa sends a spurious
     // `windowDidBecomeKey` message to the previous key window even though that window

crates/live_kit/LiveKitBridge/Sources/LiveKitBridge/LiveKitBridge.swift 🔗

@@ -10,7 +10,7 @@ class LKRoomDelegate: RoomDelegate {
         self.data = data
         self.onDidSubscribeToRemoteVideoTrack = onDidSubscribeToRemoteVideoTrack
     }
-    
+
     func room(_ room: Room, participant: RemoteParticipant, didSubscribe publication: RemoteTrackPublication, track: Track) {
         if track.kind == .video {
             self.onDidSubscribeToRemoteVideoTrack(self.data, Unmanaged.passRetained(track).toOpaque())