summaryrefslogtreecommitdiff
path: root/src/rrulestr.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-31 19:27:37 +0100
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-31 19:27:37 +0100
commitf50129d61a65dd6372b3d12f42d989548fd666de (patch)
tree0f3b326c59066644d909be891df954c9e8c2ae95 /src/rrulestr.rs
parent4bbe0f98c06bd116d705b2f1a16b1d4f66b736d6 (diff)
downloadrust_rrule-f50129d61a65dd6372b3d12f42d989548fd666de.zip
refactor
Diffstat (limited to 'src/rrulestr.rs')
-rw-r--r--src/rrulestr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rrulestr.rs b/src/rrulestr.rs
index 7581ab9..20670f8 100644
--- a/src/rrulestr.rs
+++ b/src/rrulestr.rs
@@ -175,7 +175,7 @@ fn parse_rrule(line: &str) -> Result<Options, RRuleParseError> {
options.bysetpos = Some(bysetpos);
}
"BYMONTH" => {
- let bymonth = stringval_to_intvec(value, |month| month >= 0 && month <= 11, format!("Invalid bymonth value"))?;
+ let bymonth = stringval_to_intvec(value, |month| month <= 11, format!("Invalid bymonth value"))?;
options.bymonth = Some(bymonth);
}
"BYMONTHDAY" => {