Skip to content

Commit

Permalink
Merge pull request #108 from fmeringdal/fix/add-exrule-to-rruleset-in…
Browse files Browse the repository at this point in the history
…-fromstr-impl

Fix RRuleSet FromStr implementation to add exrules as exrules and not as rrules
  • Loading branch information
fmeringdal authored Apr 1, 2024
2 parents fb43c05 + 19515d5 commit 8c61634
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion rrule/src/core/rruleset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))]
{
Expand Down

0 comments on commit 8c61634

Please sign in to comment.