diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2023-08-08 09:24:30 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2023-08-08 10:41:11 +0200 |
| commit | 947bb8bae0bce4be43e2a7f0b398594ac493efcc (patch) | |
| tree | c52aa0dbd9dac787f745e7ee2be49e16927e7c8e | |
| parent | 7ec28a1ff2214f4042c40d1979d3484b549444ed (diff) | |
| download | mullvadvpn-947bb8bae0bce4be43e2a7f0b398594ac493efcc.tar.xz mullvadvpn-947bb8bae0bce4be43e2a7f0b398594ac493efcc.zip | |
Fix void return type for Objective-C calls
| -rw-r--r-- | mullvad-daemon/src/macos_launch_daemon.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mullvad-daemon/src/macos_launch_daemon.rs b/mullvad-daemon/src/macos_launch_daemon.rs index 6fbc3b57b3..d71e4b49bb 100644 --- a/mullvad-daemon/src/macos_launch_daemon.rs +++ b/mullvad-daemon/src/macos_launch_daemon.rs @@ -6,7 +6,7 @@ //! daemon in the system settings. use objc::{class, msg_send, sel, sel_impl}; -use std::ffi::{c_void, CStr}; +use std::ffi::CStr; type Id = *mut objc::runtime::Object; @@ -80,7 +80,7 @@ fn daemon_plist_url() -> Object { let nsurl_inst: Id = unsafe { msg_send![class!(NSURL), alloc] }; let nsurl_inst: Id = unsafe { msg_send![nsurl_inst, initWithString: nsstr_inst] }; - let _: c_void = unsafe { msg_send![nsstr_inst, release] }; + let _: () = unsafe { msg_send![nsstr_inst, release] }; assert!(!nsurl_inst.is_null()); @@ -92,6 +92,6 @@ struct Object(Id); impl Drop for Object { fn drop(&mut self) { - let _: c_void = unsafe { msg_send![self.0, release] }; + let _: () = unsafe { msg_send![self.0, release] }; } } |
