From 9e4325ed72c8231a6b629944887fde3b1a202b9a Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Wed, 11 Oct 2023 15:08:42 -0400 Subject: [PATCH] ok, clippy... --- integrations/axum/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integrations/axum/src/lib.rs b/integrations/axum/src/lib.rs index f2a435c8c8..e4a9193982 100644 --- a/integrations/axum/src/lib.rs +++ b/integrations/axum/src/lib.rs @@ -232,10 +232,10 @@ macro_rules! spawn_task { let pool_handle = get_leptos_pool(); pool_handle.spawn_pinned(move || { $block }); } else { - _ = $block; - panic!("It appears you have set `default-features = false` on `leptos_axum`, \ + eprintln!("\n\nIt appears you have set `default-features = false` on `leptos_axum`, \ but are not using the `wasm` feature. Either remove `default-features = false` or, \ - if you are running in a JS-hosted WASM server environment, add the `wasm` feature."); + if you are running in a JS-hosted WASM server environment, add the `wasm` feature.\n\n"); + spawn_local($block); } } };