From 0fad55124684989ec9fd9a742b5731359d0238ce Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 17 Nov 2024 11:07:01 +0100 Subject: Upgrade dependencies --- src/gui/form/repetition.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/form/repetition.rs') diff --git a/src/gui/form/repetition.rs b/src/gui/form/repetition.rs index a83aea5..ca8379a 100644 --- a/src/gui/form/repetition.rs +++ b/src/gui/form/repetition.rs @@ -197,7 +197,7 @@ pub fn validate( // Check until let until = (if frequency.is_some() { - match validation::non_empty(model.until.buffer().text()) { + match validation::non_empty(model.until.buffer().text().to_string()) { Some(until) => match NaiveDate::parse_from_str(&until, event::DATE_FORMAT) { Ok(until) => Ok(Some(until)), Err(_) => Err(format!("Can’t parse date from {}", until)), -- cgit v1.2.3