Skip to content

Commit f136dc0

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

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
@@ -363,6 +363,7 @@ macro_rules! global_wlock {
363363
}};
364364
}
365365

366+
/// tests helper
366367
#[cfg(test)]
367368
pub fn check_test_slot_busy(slot: CK_SLOT_ID) -> bool {
368369
let state = match STATE.read() {
@@ -430,6 +431,7 @@ static CONFIG: Lazy<RwLock<GlobalConfig>> = Lazy::new(|| {
430431
RwLock::new(global_conf)
431432
});
432433

434+
/// tests helper
433435
#[cfg(test)]
434436
pub fn add_slot(slot: config::Slot) -> CK_RV {
435437
let mut gconf = global_wlock!(noinitcheck CONFIG);

0 commit comments

Comments
 (0)