Skip to content

EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust

Build: gate tests_services with a plain cfg(test) so clippy treats it as test code

Brandon Thomasbba7abd224f6
diff --git a/crates/script/src/lib.rs b/crates/script/src/lib.rs
index 19904c2af..5c1f8cdbb 100644
--- a/crates/script/src/lib.rs
+++ b/crates/script/src/lib.rs
@@ -108,7 +108,8 @@ mod tests_ui_more;
mod tests_evalfile;
// `/browser/…` is the web editor's file table, an absolute path on wasm; on Windows it has no
// drive, so the script runtime resolves it under the current drive, where the host holds nothing.
-#[cfg(all(test, not(windows)))]
+#[cfg(test)]
+#[cfg(not(windows))]
mod tests_services;
#[cfg(test)]
mod tests_ui_mouse;