From 1c506abb8eacadf6f5c5ff6fe6d662bdfff89864 Mon Sep 17 00:00:00 2001 From: Samuel Cormier-Iijima Date: Mon, 1 Apr 2024 13:50:41 -0400 Subject: [PATCH] Address review comment and add entry to changelog --- 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 a20b042..9614914 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - 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. +- Add a `RRuleSet::set_from_string` method to support loading rules without DTSTART. This is useful particularly when working with the Google Calendar API. ## 0.11.0 (2023-07-18) diff --git a/rrule/src/core/rruleset.rs b/rrule/src/core/rruleset.rs index ec1ae37..3bb2b1f 100644 --- a/rrule/src/core/rruleset.rs +++ b/rrule/src/core/rruleset.rs @@ -245,7 +245,7 @@ impl RRuleSet { ) } - /// Load an [`RRuleSet`] from a string. + /// Set the [`RRuleSet`] properties from a string. If a DTSTART is found, it will be used as the start datetime. pub fn set_from_string(mut self, s: &str) -> Result { let Grammar { start,