Skip to content

Commit

Permalink
Revert changes to NaiveDate::from_str
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Feb 20, 2024
1 parent 8c5425d commit fe7ccdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/naive/date/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2014,10 +2014,13 @@ impl str::FromStr for NaiveDate {
fn from_str(s: &str) -> ParseResult<NaiveDate> {
const ITEMS: &[Item<'static>] = &[
Item::Numeric(Numeric::Year, Pad::Zero),
Item::Space(""),
Item::Literal("-"),
Item::Numeric(Numeric::Month, Pad::Zero),
Item::Space(""),
Item::Literal("-"),
Item::Numeric(Numeric::Day, Pad::Zero),
Item::Space(""),
];

let mut parsed = Parsed::new();
Expand Down

0 comments on commit fe7ccdf

Please sign in to comment.