From 0c2869d3f367521f7b7e709614a686f6ce5083da Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Fri, 13 Sep 2024 00:43:19 -0700 Subject: [PATCH] Outline: improve code formatting --- app-proto/sketch-outline/src/app.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app-proto/sketch-outline/src/app.rs b/app-proto/sketch-outline/src/app.rs index 1435fa9..934c960 100644 --- a/app-proto/sketch-outline/src/app.rs +++ b/app-proto/sketch-outline/src/app.rs @@ -50,9 +50,10 @@ pub fn App() -> View { list=elements_sorted, view=|elt| { let label = elt.label.clone(); - let rep_components = elt.rep.iter().map( - |u| View::from(div().children(u.to_string().replace("-", "\u{2212}"))) - ).collect::>(); + let rep_components = elt.rep.iter().map(|u| { + let u_coord = u.to_string().replace("-", "\u{2212}"); + View::from(div().children(u_coord)) + }).collect::>(); view! { li { div(class="elt-label") { (label) }