summaryrefslogtreecommitdiff
path: root/src/rrule.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-20 23:36:32 +0200
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-20 23:36:32 +0200
commit8b062ddeb1143e6894653274a524b63dc7c5b165 (patch)
treef69b97e2876452569bb2f79527c0ef244421cab8 /src/rrule.rs
parenteac4ef5fe5f0b86b576736ea49b53043c24c1357 (diff)
downloadrust_rrule-8b062ddeb1143e6894653274a524b63dc7c5b165.zip
checkpoint! Refactored more and tests pass
Diffstat (limited to 'src/rrule.rs')
-rw-r--r--src/rrule.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rrule.rs b/src/rrule.rs
index 53ccf39..0b7ad6b 100644
--- a/src/rrule.rs
+++ b/src/rrule.rs
@@ -1,3 +1,4 @@
+use crate::iter_set::iter_v2;
use crate::iter::*;
use crate::options::*;
use chrono::prelude::*;
@@ -9,6 +10,7 @@ pub struct RRule {
pub options: ParsedOptions,
}
+
impl RRule {
pub fn new(options: ParsedOptions) -> Self {
Self {
@@ -30,7 +32,7 @@ impl RRule {
};
let mut iter_res = IterResult::new(QueryMethodTypes::ALL, iter_args);
- let res = iter(&mut iter_res, &mut self.options);
+ let res = iter_v2(&mut iter_res, &mut self.options);
res
}
@@ -48,7 +50,7 @@ impl RRule {
};
let mut iter_res = IterResult::new(QueryMethodTypes::ALL, iter_args);
- let res = iter(&mut iter_res, &mut self.options);
+ let res = iter_v2(&mut iter_res, &mut self.options);
res
}
}