aboutsummaryrefslogtreecommitdiff
path: root/src/gui/form
diff options
context:
space:
mode:
authorJoris2022-12-18 20:04:08 +0100
committerJoris2022-12-18 20:04:08 +0100
commit08040993c114d9331edcc3f032bf3ad357ecf3d1 (patch)
tree87fdcf381ab729cb9292d9ee3b154be56f61ba6a /src/gui/form
parent80fdf874ac74efea64c7a21937ee790a4d871163 (diff)
Format sources
Diffstat (limited to 'src/gui/form')
-rw-r--r--src/gui/form/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/form/mod.rs b/src/gui/form/mod.rs
index cc77a19..0b63dea 100644
--- a/src/gui/form/mod.rs
+++ b/src/gui/form/mod.rs
@@ -157,7 +157,12 @@ pub async fn show(app: &App, target: Target) {
);
category_dropdown.set_margin_bottom(10);
let selected = get_selected_category(&event, &app.categories).unwrap_or_else(|| "".to_string());
- category_dropdown.set_selected(dropdown_categories.iter().position(|d| d == &selected).unwrap_or(0) as u32);
+ category_dropdown.set_selected(
+ dropdown_categories
+ .iter()
+ .position(|d| d == &selected)
+ .unwrap_or(0) as u32,
+ );
column1.append(&utils::label("Catégorie"));
column1.append(&category_dropdown);