Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Feb 10, 2023
1 parent 9baa2b1 commit 2c2d693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn parse_lstime(tm: &str, fmt_year: &str, fmt_hours: &str) -> Result<SystemT
Ok(date) => {
// Case 2.
// Return NaiveDateTime from NaiveDate with time 00:00:00
date.and_hms(0, 0, 0)
date.and_hms_opt(0, 0, 0).unwrap()
}
Err(_) => {
// Might be case 1.
Expand Down

0 comments on commit 2c2d693

Please sign in to comment.