aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/remind/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/remind/parser.rs')
-rw-r--r--src/plugins/remind/parser.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/remind/parser.rs b/src/plugins/remind/parser.rs
index 965ad99..b9682df 100644
--- a/src/plugins/remind/parser.rs
+++ b/src/plugins/remind/parser.rs
@@ -204,7 +204,8 @@ impl CommandParser {
now.tm_year + 1900,
now.tm_mon as u32 + 1,
now.tm_mday as u32,
- ).ok_or(ErrorKind::InvalidDate)?;
+ )
+ .ok_or(ErrorKind::InvalidDate)?;
let time_today = today.and_time(time);
@@ -219,7 +220,8 @@ impl CommandParser {
}
}
} else {
- Ok(date.expect("At this point date has to be set")
+ Ok(date
+ .expect("At this point date has to be set")
.and_hms(0, 0, 0))
}
}