diff --git a/web-ui/src/components/login.rs b/web-ui/src/components/login.rs index 8b9f41b..5e5c324 100644 --- a/web-ui/src/components/login.rs +++ b/web-ui/src/components/login.rs @@ -9,7 +9,9 @@ use leptos_router::hooks::{use_navigate, use_query_map}; use wasm_bindgen_futures::spawn_local; use crate::api::{self, AuthConfig}; -use crate::style::{ALERT_ERROR, BRAND, BTN, BTN_ACCENT, BTN_BLOCK, BTN_PRIMARY, INPUT, LABEL, SPINNER}; +use crate::style::{ + ALERT_ERROR, BRAND, BTN, BTN_ACCENT, BTN_BLOCK, BTN_PRIMARY, INPUT, LABEL, SPINNER, +}; #[component] pub fn Login() -> impl IntoView { diff --git a/web-ui/src/components/setup.rs b/web-ui/src/components/setup.rs index 3632518..5c3c05c 100644 --- a/web-ui/src/components/setup.rs +++ b/web-ui/src/components/setup.rs @@ -78,8 +78,11 @@ pub fn Setup() -> impl IntoView { } }; - let endpoint_preview = - move || selected_token().map(|t| t.api_endpoint).unwrap_or_else(|| "\u{2014}".to_string()); + let endpoint_preview = move || { + selected_token() + .map(|t| t.api_endpoint) + .unwrap_or_else(|| "\u{2014}".to_string()) + }; let generate = move |_| { spawn_local(async move { @@ -122,7 +125,9 @@ pub fn Setup() -> impl IntoView { Err(e) => log.update(|v| { v.push(( "err".into(), - format!("Registration failed \u{2014} sync may not authenticate: {e}"), + format!( + "Registration failed \u{2014} sync may not authenticate: {e}" + ), )) }), }