Skip to content

Commit 2c2d693

Browse files
committed
lint
1 parent 9baa2b1 commit 2c2d693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn parse_lstime(tm: &str, fmt_year: &str, fmt_hours: &str) -> Result<SystemT
3838
Ok(date) => {
3939
// Case 2.
4040
// Return NaiveDateTime from NaiveDate with time 00:00:00
41-
date.and_hms(0, 0, 0)
41+
date.and_hms_opt(0, 0, 0).unwrap()
4242
}
4343
Err(_) => {
4444
// Might be case 1.

0 commit comments

Comments
 (0)