From 4ef8d5abcfe3a8244b1fb718aad0823d30291041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Guti=C3=A9rrez=20Alonso?= Date: Tue, 31 Oct 2023 17:55:04 +0100 Subject: [PATCH] Format code --- src/app.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 5e6dd0f..3a9c321 100644 --- a/src/app.rs +++ b/src/app.rs @@ -224,7 +224,13 @@ impl eframe::App for App { row.col(|ui| { if ui.button("Add a loss").clicked() { self.losses.sort_unstable(); - self.losses.push(if self.losses.is_empty() { 7 } else {self.losses[self.losses.len() - 1]} + 1); + self.losses.push( + if self.losses.is_empty() { + 7 + } else { + self.losses[self.losses.len() - 1] + } + 1, + ); update = true; } });