1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 03:03:43 +00:00

Extract common cargo info and edition 2024 fix (#13507)

This commit is contained in:
Daniel García
2025-02-24 17:17:27 +01:00
committed by GitHub
parent acdcf69722
commit 8cf490a8c1
8 changed files with 51 additions and 46 deletions

View File

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