summaryrefslogtreecommitdiff
path: root/src/iter.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-17 01:56:39 +0200
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-17 01:56:39 +0200
commitd2fe9bf6fec3c273a785813ccf915816f8486d46 (patch)
tree90054001b04f52925d57ef1d80550b71451921b1 /src/iter.rs
parente508161cd3580888febaef4bbb848e219797e378 (diff)
downloadrust_rrule-d2fe9bf6fec3c273a785813ccf915816f8486d46.zip
some small fixes
Diffstat (limited to 'src/iter.rs')
-rw-r--r--src/iter.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/iter.rs b/src/iter.rs
index 0581cc3..2673059 100644
--- a/src/iter.rs
+++ b/src/iter.rs
@@ -249,7 +249,9 @@ pub fn increment_counter_date(
counter_date + Duration::days(day_delta as i64)
}
Frequenzy::DAILY => counter_date + Duration::days(options.interval as i64),
- _ => panic!("hfoashfosa"),
+ Frequenzy::HOURLY => counter_date + Duration::hours(options.interval as i64),
+ Frequenzy::MINUTELY => counter_date + Duration::minutes(options.interval as i64),
+ Frequenzy::SECONDLY => counter_date + Duration::seconds(options.interval as i64),
}
}