Skip to content

Commit 16d5242

Browse files
fix: import LazyLock in on_media_cb hex-label unit test
PR #218 added a test using LazyLock without the local import that other conn.rs tests use, causing cargo test and sanitizer jobs to fail at compile time. Co-authored-by: Alexander Wagner <info@alexanderwagnerdev.com>
1 parent 7ac6ee8 commit 16d5242

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/session/conn.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3674,6 +3674,8 @@ mod tests {
36743674

36753675
#[test]
36763676
fn on_media_cb_receives_hex_label_for_non_utf8_fourcc() {
3677+
use std::sync::{LazyLock, Mutex};
3678+
36773679
static SEEN_CODEC: LazyLock<Mutex<Option<String>>> = LazyLock::new(|| Mutex::new(None));
36783680
fn record_codec(_: u64, _: FrameType, codec: Option<&str>) -> bool {
36793681
*SEEN_CODEC.lock().unwrap() = codec.map(str::to_owned);

0 commit comments

Comments
 (0)