From cb94c8f04713cea0f41a97b0413f76b6d4c56b7b Mon Sep 17 00:00:00 2001 From: aiongg Date: Mon, 26 Oct 2026 20:46:49 +0000 Subject: [PATCH] refactor(ui-egui): move open_worker_tests.rs to platform/open_worker/tests.rs --- crates/ui-egui/src/lib.rs | 3 --- crates/ui-egui/src/platform/open_worker.rs | 3 +++ .../{open_worker_tests.rs => platform/open_worker/tests.rs} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename crates/ui-egui/src/{open_worker_tests.rs => platform/open_worker/tests.rs} (100%) diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index 6291895ec5..b8f2934aa6 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -52,9 +52,6 @@ pub mod i18n; pub mod theme; mod widgets; -#[cfg(all(test, not(target_arch = "wasm32")))] -mod open_worker_tests; - use pdfcraft_engine::{DocId, Session}; pub use canvas::{DocView, RasterMemory}; diff --git a/crates/ui-egui/src/platform/open_worker.rs b/crates/ui-egui/src/platform/open_worker.rs index 04bd1fefe5..fe564db398 100644 --- a/crates/ui-egui/src/platform/open_worker.rs +++ b/crates/ui-egui/src/platform/open_worker.rs @@ -206,3 +206,6 @@ pub(crate) fn prepare_gate() -> (Arc, Receiver<()>, Sender<()>, Rec let (finished, finished_rx) = mpsc::channel(); (Arc::new(PrepareGate { started, release: Mutex::new(release), finished }), started_rx, release_tx, finished_rx) } + +#[cfg(all(test, not(target_arch = "wasm32")))] +mod tests; diff --git a/crates/ui-egui/src/open_worker_tests.rs b/crates/ui-egui/src/platform/open_worker/tests.rs similarity index 100% rename from crates/ui-egui/src/open_worker_tests.rs rename to crates/ui-egui/src/platform/open_worker/tests.rs