diff options
| author | Nathan Perry <np@nathanperry.dev> | 2022-11-28 13:55:03 -0500 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2022-11-28 13:55:03 -0500 |
| commit | 12abd19c4c03533445717489d22b3e09b1f0a897 (patch) | |
| tree | b271d97b25af1f8553092357dd783e08e8e53cb4 /src/commands/today/pianoman.rs | |
| parent | 897a499c9cae3a7fa41325e1e3d050b7aa5ef08f (diff) | |
chrono: use hms_opt
Diffstat (limited to 'src/commands/today/pianoman.rs')
| -rw-r--r-- | src/commands/today/pianoman.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/today/pianoman.rs b/src/commands/today/pianoman.rs index fa3ac7e..e3a997f 100644 --- a/src/commands/today/pianoman.rs +++ b/src/commands/today/pianoman.rs @@ -1,8 +1,8 @@ use super::prelude::*; lazy_static! { - static ref NINE_AM: chrono::NaiveTime = chrono::NaiveTime::from_hms(9, 0, 0); - static ref NINE_PM: chrono::NaiveTime = chrono::NaiveTime::from_hms(21, 0, 0); + static ref NINE_AM: chrono::NaiveTime = chrono::NaiveTime::from_hms_opt(9, 0, 0).unwrap(); + static ref NINE_PM: chrono::NaiveTime = chrono::NaiveTime::from_hms_opt(21, 0, 0).unwrap(); static ref PIANOMANS: Vec<TodayArgs> = vec