about summary refs log tree commit diff stats
path: root/crates
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-18 18:07:32 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-18 18:07:32 +0200
commit4e09dafa7a213ce2fcafe7d810cf3ae1f5f9bdb0 (patch)
tree1cdbfc35554d2dc511ec71e5eb93c89d44dbe9be /crates
parentfix(crates/yt): **Always** honor the `config.global.display_colors` config se... (diff)
downloadyt-4e09dafa7a213ce2fcafe7d810cf3ae1f5f9bdb0.zip
test(crates/yt/tests/_testenv::init): Use appropriate atomic u64 type
Diffstat (limited to 'crates')
-rw-r--r--crates/yt/tests/watch/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/yt/tests/watch/mod.rs b/crates/yt/tests/watch/mod.rs
index 9c5a203..7d6f264 100644
--- a/crates/yt/tests/watch/mod.rs
+++ b/crates/yt/tests/watch/mod.rs
@@ -1,13 +1,13 @@
 use std::{
-    cell::Cell,
     io::{BufRead, BufReader, Write},
     os::unix::net::UnixStream,
     path::PathBuf,
+    sync::atomic::AtomicU64,
 };
 
 use colors::{Colorize, IntoCanvas};
 use serde_json::json;
-use yt_dlp::{json_cast, json_get, progress_hook::__priv::vm::common::atomic::Radium};
+use yt_dlp::{json_cast, json_get};
 
 use crate::_testenv::TestEnv;
 
@@ -15,7 +15,7 @@ mod focus_switch;
 
 struct MpvControl {
     stream: UnixStream,
-    current_request_id: Cell<u64>,
+    current_request_id: AtomicU64,
     name: &'static str,
 }
 
@@ -48,7 +48,7 @@ impl MpvControl {
         let mut me = Self {
             stream,
             name: env.name,
-            current_request_id: Cell::new(0),
+            current_request_id: AtomicU64::new(0),
         };
 
         // Disable all events.