Fix some debug assertion tags

Not relevant anyway because I think I'm going to have to stop using
Dioxus.
This commit is contained in:
Emilia Allison 2023-05-21 21:47:29 -04:00
parent db83921ffd
commit 1fd2119e1e
Signed by: emilia
GPG Key ID: 7A3F8997BFE894E0
2 changed files with 6 additions and 1 deletions

View File

@ -4,16 +4,19 @@ mod data;
use components::main_window::MainWindow; use components::main_window::MainWindow;
use dioxus::prelude::*; use dioxus::prelude::*;
use fermi::*;
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
use data::*; use data::*;
pub fn App(cx: Scope) -> Element { pub fn App(cx: Scope) -> Element {
use_init_atom_root(cx);
cx.render(rsx! { cx.render(rsx! {
MainWindow {} MainWindow {}
}) })
} }
#[cfg(debug_assertions)]
pub fn plate_test() { pub fn plate_test() {
let source = plate::Plate::new(plate::PlateType::Source, plate::PlateFormat::W96); let source = plate::Plate::new(plate::PlateType::Source, plate::PlateFormat::W96);
let destination = plate::Plate::new(plate::PlateType::Destination, plate::PlateFormat::W384); let destination = plate::Plate::new(plate::PlateType::Destination, plate::PlateFormat::W384);

View File

@ -1,9 +1,11 @@
#[cfg(debug_assertions)]
use plate_tool::plate_test; use plate_tool::plate_test;
use plate_tool::App; use plate_tool::App;
use wasm_logger; use wasm_logger;
fn main() { fn main() {
wasm_logger::init(wasm_logger::Config::default()); wasm_logger::init(wasm_logger::Config::default());
dioxus_web::launch(App); dioxus_web::launch(App);
// plate_test(); //plate_test();
} }