Skip to content

Commit

Permalink
Apply @WhyNotHugo's suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo <[email protected]>
  • Loading branch information
AlexTMjugador and WhyNotHugo authored Jan 28, 2025
1 parent 3132c20 commit 21e4e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rrule/src/parser/regex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl ParsedDateString {
Regex::new(
r"(?m)^([0-9]{4})([0-9]{2})([0-9]{2})(T([0-9]{2})([0-9]{2})([0-9]{2})(Z?))?$",
)
.expect("DATESTR_RE regex failed")
.expect("DATESTR_RE must compile")
})
.captures(val)
.ok_or_else(|| ParseError::InvalidDateTimeFormat(val.into()))?;
Expand Down

0 comments on commit 21e4e41

Please sign in to comment.