use tabs, not spaces

This commit is contained in:
Simon Gardling
2022-03-10 09:01:21 -05:00
parent f851b365ab
commit dd6d8c80b8
11 changed files with 1417 additions and 1417 deletions

View File

@@ -8,27 +8,27 @@ mod misc;
mod parsing;
cfg_if::cfg_if! {
if #[cfg(target_arch = "wasm32")] {
use misc::log_helper;
use wasm_bindgen::prelude::*;
if #[cfg(target_arch = "wasm32")] {
use misc::log_helper;
use wasm_bindgen::prelude::*;
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
#[wasm_bindgen(start)]
pub fn start() -> Result<(), wasm_bindgen::JsValue> {
log_helper("Initializing...");
#[wasm_bindgen(start)]
pub fn start() -> Result<(), wasm_bindgen::JsValue> {
log_helper("Initializing...");
// Used in order to hook into `panic!()` to log in the browser's console
log_helper("Initializing panic hooks...");
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
log_helper("Initialized panic hooks!");
// Used in order to hook into `panic!()` to log in the browser's console
log_helper("Initializing panic hooks...");
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
log_helper("Initialized panic hooks!");
log_helper("Finished initializing!");
log_helper("Finished initializing!");
log_helper("Starting App...");
let app = egui_app::MathApp::default();
eframe::start_web("canvas", Box::new(app))
}
}
log_helper("Starting App...");
let app = egui_app::MathApp::default();
eframe::start_web("canvas", Box::new(app))
}
}
}