diff --git a/apps/desktop/desktop_native/objc/src/lib.rs b/apps/desktop/desktop_native/objc/src/lib.rs index f5a7623cfc3..eb969cb5f56 100644 --- a/apps/desktop/desktop_native/objc/src/lib.rs +++ b/apps/desktop/desktop_native/objc/src/lib.rs @@ -68,13 +68,13 @@ mod objc { use super::*; - unsafe extern "C" { - pub unsafe fn runCommand(context: *mut c_void, value: *const c_char); - pub unsafe fn freeObjCString(value: &ObjCString); + extern "C" { + pub fn runCommand(context: *mut c_void, value: *const c_char); + pub fn freeObjCString(value: &ObjCString); } /// This function is called from the ObjC code to return the output of the command - #[unsafe(no_mangle)] + #[no_mangle] pub extern "C" fn commandReturn(context: &mut CommandContext, value: ObjCString) -> bool { let value: String = match value.try_into() { Ok(value) => value,