Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
margual56 committed Oct 31, 2023
1 parent f8deced commit 4ef8d5a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
Expand Down

0 comments on commit 4ef8d5a

Please sign in to comment.