summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-12-20 12:42:06 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-20 12:48:09 +0100
commit2612eefb2a71444d3a45f21de9782f756111bd3e (patch)
tree817313c6d0a6f8d86ddee36c1a28732f3a37b078
parent6e3201c2fd298cbfdba8e6de8fce41fd239b9412 (diff)
Make function private
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--src/utils/dateutil.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/dateutil.rs b/src/utils/dateutil.rs
index c515016..bc70c02 100644
--- a/src/utils/dateutil.rs
+++ b/src/utils/dateutil.rs
@@ -20,7 +20,7 @@ pub fn datetime_from_str(datetime_str: &str) -> ParseResult<DateTime<Local>> {
Ok(Local.from_local_datetime(naive_datetime).unwrap())
}
-pub fn week_from_str_begin(date_str: &str) -> Result<Date<Local>, String> {
+fn week_from_str_begin(date_str: &str) -> Result<Date<Local>, String> {
let now = Local::now();
if date_str == "toweek" || date_str == "thisweek" {
return Ok(Local.isoywd(now.year(), now.iso_week().week(), Weekday::Mon));