Skip to content

Commit

Permalink
Merge pull request #102 from msdrigg/main
Browse files Browse the repository at this point in the history
Making ParseError and ValidationError public
  • Loading branch information
fmeringdal authored Feb 5, 2024
2 parents e0f34d8 + 721bd86 commit 7ebdf3d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.12.0 (2023-xx-xx)
## 0.12.0 (2024-xx-xx)

- Fix to ensure freq is capitalized in the string representation
- MSRV is bumped to `v1.70.0` from `v1.64.0`
- Make `ParseError` and `ValidationError` public

## 0.11.0 (2023-07-18)

Expand Down
2 changes: 1 addition & 1 deletion rrule/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use thiserror::Error;

use crate::{parser::ParseError, validator::ValidationError};
pub use crate::{parser::ParseError, validator::ValidationError};

#[derive(Error, Debug, Clone, PartialEq, Eq)]
/// The error type for the rrule crate.
Expand Down
2 changes: 1 addition & 1 deletion rrule/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@ mod validator;
pub use crate::core::{Frequency, NWeekday, RRule, RRuleResult, RRuleSet, Tz};
pub use crate::core::{Unvalidated, Validated};
pub use chrono::Weekday;
pub use error::RRuleError;
pub use error::{ParseError, RRuleError, ValidationError};
pub use iter::RRuleSetIter;
2 changes: 1 addition & 1 deletion rrule/src/validator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
mod error;
pub(crate) mod validate_rrule;
pub(crate) use error::ValidationError;
pub use error::ValidationError;

pub(crate) use validate_rrule::YEAR_RANGE;

0 comments on commit 7ebdf3d

Please sign in to comment.