aboutsummaryrefslogtreecommitdiff
path: root/src/gui/form
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/form')
-rw-r--r--src/gui/form/repetition.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/form/repetition.rs b/src/gui/form/repetition.rs
index 7236016..accb091 100644
--- a/src/gui/form/repetition.rs
+++ b/src/gui/form/repetition.rs
@@ -134,7 +134,9 @@ pub fn validate(model: &Model) -> Result<Option<Repetition>, String> {
Ok(Some(Repetition::Daily { period }))
} else if model.monthly_radio.is_active() {
let day = repetition::validate_day(&model.monthly_entry.buffer().text())?;
- Ok(Some(Repetition::Monthly { day: DayOfMonth::Day { day } }))
+ Ok(Some(Repetition::Monthly {
+ day: DayOfMonth::Day { day },
+ }))
} else if model.first_day_radio.is_active() {
let weekday = WEEKDAYS[model.first_day_dropdown.selected() as usize];
Ok(Some(Repetition::Monthly {