aboutsummaryrefslogtreecommitdiff
path: root/src/gui/form/repetition.rs
diff options
context:
space:
mode:
authorJoris2024-11-17 11:07:01 +0100
committerJoris2024-11-17 11:07:01 +0100
commit0fad55124684989ec9fd9a742b5731359d0238ce (patch)
treef90d3d4ffc1b1f5e87dbaf0cc29adad069612545 /src/gui/form/repetition.rs
parent36cd29b459bb41bff1cf6d079fd30100bd89cec1 (diff)
Upgrade dependencies
Diffstat (limited to 'src/gui/form/repetition.rs')
-rw-r--r--src/gui/form/repetition.rs2
1 files changed, 1 insertions, 1 deletions
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)),