From 5fc14343443737fa9d459d767863317c302ba215 Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin Date: Wed, 2 Oct 2024 18:37:44 +0800 Subject: [PATCH] fix: compile error --- packages/renderer/src/render/canvas.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/renderer/src/render/canvas.rs b/packages/renderer/src/render/canvas.rs index 14ca2942..040c58e6 100644 --- a/packages/renderer/src/render/canvas.rs +++ b/packages/renderer/src/render/canvas.rs @@ -183,6 +183,7 @@ mod tests { wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser); const SHOW_RESULT: bool = true; + #[cfg(feature = "worker")] const IN_WORKER: bool = false; fn hash_bytes>(bytes: T) -> String {