summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Meringdal <fredrikmeringdal@Fredriks-MacBook-Pro.local>2021-02-07 14:57:54 +0100
committerFredrik Meringdal <fredrikmeringdal@Fredriks-MacBook-Pro.local>2021-02-07 14:57:54 +0100
commit5a7a41849a9bdd2e92addeb74c178ef713adeb2d (patch)
treef6c045690f9070ee7ee1990e7594c4ecfbba1bf8
parent50a3c9047966048d5bcd9bd9a05e903f4a105123 (diff)
downloadrust_rrule-5a7a41849a9bdd2e92addeb74c178ef713adeb2d.zip
recatoring
-rw-r--r--src/rruleset_iter.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rruleset_iter.rs b/src/rruleset_iter.rs
index 757da18..7b83f39 100644
--- a/src/rruleset_iter.rs
+++ b/src/rruleset_iter.rs
@@ -5,7 +5,7 @@ use chrono_tz::Tz;
use std::collections::HashMap;
use std::iter::Iterator;
-pub struct RRuleIterSet {
+pub struct RRuleSetIter {
pub queue: HashMap<usize, DateTime<Tz>>,
pub rrule_iters: Vec<RRuleIter>,
pub exrules: Vec<RRule>,
@@ -14,7 +14,7 @@ pub struct RRuleIterSet {
pub rdates: Vec<DateTime<Tz>>,
}
-impl Iterator for RRuleIterSet {
+impl Iterator for RRuleSetIter {
type Item = DateTime<Tz>;
fn next(&mut self) -> Option<Self::Item> {
@@ -142,12 +142,12 @@ fn accept_generated_date(
impl IntoIterator for RRuleSet {
type Item = DateTime<Tz>;
- type IntoIter = RRuleIterSet;
+ type IntoIter = RRuleSetIter;
fn into_iter(mut self) -> Self::IntoIter {
// Sort in decreasing order
self.rdate.sort_by(|d1, d2| d2.partial_cmp(d1).unwrap());
- RRuleIterSet {
+ RRuleSetIter {
queue: Default::default(),
rrule_iters: self
.rrule