diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rrule.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rrule.rs b/src/rrule.rs index 1d95fe9..71f7e47 100644 --- a/src/rrule.rs +++ b/src/rrule.rs @@ -33,7 +33,7 @@ impl RRule { /// With inc == true, if dt itself is an recurrence, it will be returned. pub fn after(&self, dt: DateTime<Tz>, inc: bool) -> Option<DateTime<Tz>> { self.into_iter() - .skip_while(|d| if inc { *d <= dt } else { *d < dt }) + .skip_while(|d| if inc { *d < dt } else { *d <= dt }) .next() } @@ -48,7 +48,7 @@ impl RRule { inc: bool, ) -> Vec<DateTime<Tz>> { self.into_iter() - .skip_while(|d| if inc { *d <= after } else { *d < after }) + .skip_while(|d| if inc { *d < after } else { *d <= after }) .take_while(|d| if inc { *d <= before } else { *d < before }) .collect() } |