From 4125708354e6e0937d62a87f11b753d622c041d8 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Tue, 9 Jan 2024 19:28:11 -0500 Subject: [PATCH] formatting --- doordesk/app/src/components/article.rs | 6 +++--- doordesk/rustfmt.toml | 1 + doordesk/server/src/fileserv.rs | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 doordesk/rustfmt.toml diff --git a/doordesk/app/src/components/article.rs b/doordesk/app/src/components/article.rs index 91be72a..a99f412 100644 --- a/doordesk/app/src/components/article.rs +++ b/doordesk/app/src/components/article.rs @@ -13,8 +13,8 @@ pub fn Article() -> impl IntoView { view! { -
-

+
+

{move || match data.get() { None => "Loading...".to_string(), Some(data) => data.unwrap().title, @@ -22,7 +22,7 @@ pub fn Article() -> impl IntoView {


- + {move || match data.get() { None => "Loading...".to_string(), Some(data) => data.unwrap().date, diff --git a/doordesk/rustfmt.toml b/doordesk/rustfmt.toml new file mode 100644 index 0000000..3a26366 --- /dev/null +++ b/doordesk/rustfmt.toml @@ -0,0 +1 @@ +edition = "2021" diff --git a/doordesk/server/src/fileserv.rs b/doordesk/server/src/fileserv.rs index 98b7d8f..f0870ea 100644 --- a/doordesk/server/src/fileserv.rs +++ b/doordesk/server/src/fileserv.rs @@ -23,7 +23,8 @@ pub async fn file_and_error_handler( if res.status() == StatusCode::OK { res.into_response() } else { - let handler = leptos_axum::render_app_to_stream(options.to_owned(), move || view! { }); + let handler = + leptos_axum::render_app_to_stream(options.to_owned(), move || view! { }); handler(req).await.into_response() } }