From ebad512a033e05d1555ff3ae85b11a5ed7dc5477 Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Fri, 1 Aug 2025 22:39:59 -0700 Subject: [PATCH] Collapse a structure expression onto one line I had put `active_tab: /* ... */` on its own line to make the `create_signal` call more readable, but it wasn't worth the cost in vertical space. --- app-proto/src/components/diagnostics.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app-proto/src/components/diagnostics.rs b/app-proto/src/components/diagnostics.rs index 9ec261f..f802684 100644 --- a/app-proto/src/components/diagnostics.rs +++ b/app-proto/src/components/diagnostics.rs @@ -16,9 +16,7 @@ struct DiagnosticsState { impl DiagnosticsState { fn new(initial_tab: String) -> DiagnosticsState { - DiagnosticsState { - active_tab: create_signal(initial_tab), - } + DiagnosticsState { active_tab: create_signal(initial_tab) } } }