From 1fd2119e1e3e896542a6f0cf765cb9a9c159eac9 Mon Sep 17 00:00:00 2001 From: Emilia Date: Sun, 21 May 2023 21:47:29 -0400 Subject: [PATCH] Fix some debug assertion tags Not relevant anyway because I think I'm going to have to stop using Dioxus. --- src/lib.rs | 3 +++ src/main.rs | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a6edbc6..e6d7195 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,16 +4,19 @@ mod data; use components::main_window::MainWindow; use dioxus::prelude::*; +use fermi::*; #[cfg(debug_assertions)] use data::*; pub fn App(cx: Scope) -> Element { + use_init_atom_root(cx); cx.render(rsx! { MainWindow {} }) } +#[cfg(debug_assertions)] pub fn plate_test() { let source = plate::Plate::new(plate::PlateType::Source, plate::PlateFormat::W96); let destination = plate::Plate::new(plate::PlateType::Destination, plate::PlateFormat::W384); diff --git a/src/main.rs b/src/main.rs index 62e208d..0fe845a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,11 @@ +#[cfg(debug_assertions)] use plate_tool::plate_test; + use plate_tool::App; use wasm_logger; fn main() { wasm_logger::init(wasm_logger::Config::default()); dioxus_web::launch(App); - // plate_test(); + //plate_test(); }