From 0a6eb2db3981dbb2d18eb0869d03227fea174686 Mon Sep 17 00:00:00 2001 From: Austin Date: Mon, 20 Mar 2023 00:59:05 +0000 Subject: [PATCH] cargo fmt --- app/src/components/app.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/src/components/app.rs b/app/src/components/app.rs index 848c7a3..e651ab5 100644 --- a/app/src/components/app.rs +++ b/app/src/components/app.rs @@ -17,6 +17,7 @@ use crate::{ }; use gloo_console::error; +use wasm_bindgen::prelude::*; use yew::{ function_component, html::Scope, @@ -28,25 +29,24 @@ use yew_router::{ scope_ext::RouterScopeExt, BrowserRouter, Switch, }; -use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = darkmode)] - fn toggleDarkMode(doSave: bool); + #[wasm_bindgen(js_namespace = darkmode)] + fn toggleDarkMode(doSave: bool); - #[wasm_bindgen] - fn inDarkMode() -> bool; + #[wasm_bindgen] + fn inDarkMode() -> bool; } #[function_component(DarkModeToggle)] pub fn dark_mode_toggle() -> Html { - html! { -
- - -
- } + html! { +
+ + +
+ } } #[function_component(AppContainer)]