diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bdb6a7317..d2f68b2da 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ on: - 'LICENSE-GPL' branches: - mbedtls-3 - - main + - master - 'v0.*' merge_group: diff --git a/mbedtls/src/wrapper_macros.rs b/mbedtls/src/wrapper_macros.rs index 6dbeb52a6..29219d0dd 100644 --- a/mbedtls/src/wrapper_macros.rs +++ b/mbedtls/src/wrapper_macros.rs @@ -17,8 +17,10 @@ macro_rules! callback { //}; { $n:ident, $m:ident($($arg:ident: $ty:ty),*) -> $ret:ty } => { pub trait $n: Send + Sync { + #[allow(dead_code)] unsafe extern "C" fn call_mut(user_data: *mut ::mbedtls_sys::types::raw_types::c_void, $($arg:$ty),*) -> $ret where Self: Sized; + #[allow(dead_code)] fn data_ptr_mut(&mut self) -> *mut ::mbedtls_sys::types::raw_types::c_void; } @@ -33,8 +35,10 @@ macro_rules! callback { } pub trait $m: Send + Sync { + #[allow(dead_code)] unsafe extern "C" fn call(user_data: *mut ::mbedtls_sys::types::raw_types::c_void, $($arg:$ty),*) -> $ret where Self: Sized; + #[allow(dead_code)] fn data_ptr(&self) -> *mut ::mbedtls_sys::types::raw_types::c_void; }