From 19515d5883fea84d26e3d76fbd2d4bc09398bdf7 Mon Sep 17 00:00:00 2001 From: Fredrik Meringdal Date: Mon, 1 Apr 2024 19:42:03 +0200 Subject: [PATCH] Fix RRuleSet FromStr implementation to add exrules as exrules and not as rrules --- CHANGELOG.md | 1 + rrule/src/core/rruleset.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6eb044f..a20b042 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix to ensure freq is capitalized in the string representation - MSRV is bumped to `v1.74.0` from `v1.64.0` - Make `ParseError` and `ValidationError` public +- `EXRULE`s are now correctly added as exrules on the `RRuleSet` when parsed from a string, instead of being incorrectly added as an rrule. ## 0.11.0 (2023-07-18) diff --git a/rrule/src/core/rruleset.rs b/rrule/src/core/rruleset.rs index 32915f1..99aedc0 100644 --- a/rrule/src/core/rruleset.rs +++ b/rrule/src/core/rruleset.rs @@ -239,7 +239,7 @@ impl FromStr for RRuleSet { { exrule .validate(start.datetime) - .map(|exrule| rrule_set.rrule(exrule)) + .map(|exrule| rrule_set.exrule(exrule)) } #[cfg(not(feature = "exrule"))] {