Skip to content

Commit 8cd9a8d

Browse files
authored
Merge pull request #348 from fortanix/yx/fix-ci
Fix CI - Update branch name in CI yaml file to ensure GitHub Action is triggered. - Update code to fix new warning from latest nightly.
2 parents 391b600 + b7dd90f commit 8cd9a8d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
- 'LICENSE-GPL'
1818
branches:
1919
- mbedtls-3
20-
- main
20+
- master
2121
- 'v0.*'
2222
merge_group:
2323

mbedtls/src/wrapper_macros.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ macro_rules! callback {
1717
//};
1818
{ $n:ident, $m:ident($($arg:ident: $ty:ty),*) -> $ret:ty } => {
1919
pub trait $n: Send + Sync {
20+
#[allow(dead_code)]
2021
unsafe extern "C" fn call_mut(user_data: *mut ::mbedtls_sys::types::raw_types::c_void, $($arg:$ty),*) -> $ret where Self: Sized;
2122

23+
#[allow(dead_code)]
2224
fn data_ptr_mut(&mut self) -> *mut ::mbedtls_sys::types::raw_types::c_void;
2325
}
2426

@@ -33,8 +35,10 @@ macro_rules! callback {
3335
}
3436

3537
pub trait $m: Send + Sync {
38+
#[allow(dead_code)]
3639
unsafe extern "C" fn call(user_data: *mut ::mbedtls_sys::types::raw_types::c_void, $($arg:$ty),*) -> $ret where Self: Sized;
3740

41+
#[allow(dead_code)]
3842
fn data_ptr(&self) -> *mut ::mbedtls_sys::types::raw_types::c_void;
3943
}
4044

0 commit comments

Comments
 (0)