Skip to content

Commit 8c495a5

Browse files
committed
Silence some warnings when executing tests
Signed-off-by: Simo Sorce <[email protected]>
1 parent af2b375 commit 8c495a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ macro_rules! global_wlock {
359359
}};
360360
}
361361

362+
/// tests helper
362363
#[cfg(test)]
363364
pub fn check_test_slot_busy(slot: CK_SLOT_ID) -> bool {
364365
let state = match STATE.read() {
@@ -426,6 +427,7 @@ static CONFIG: Lazy<RwLock<GlobalConfig>> = Lazy::new(|| {
426427
RwLock::new(global_conf)
427428
});
428429

430+
/// tests helper
429431
#[cfg(test)]
430432
pub fn add_slot(slot: config::Slot) -> CK_RV {
431433
let mut gconf = global_wlock!(noinitcheck CONFIG);

0 commit comments

Comments
 (0)