From 4e09dafa7a213ce2fcafe7d810cf3ae1f5f9bdb0 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 18 Jul 2025 18:07:32 +0200 Subject: test(crates/yt/tests/_testenv::init): Use appropriate atomic u64 type --- crates/yt/tests/watch/mod.rs | 8 ++++---- 1 file 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, + 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. -- cgit 1.4.1