summaryrefslogtreecommitdiff
path: root/src/month.rs
diff options
context:
space:
mode:
authorBotahamec <botahamec@outlook.com>2022-03-21 22:00:30 -0400
committerBotahamec <botahamec@outlook.com>2022-03-21 22:00:30 -0400
commitcf2673d4d4bc8d6b96f4488847d8c2b3c3545010 (patch)
treee9777ca24e0f2deda276e4d488e06a5ebeddb5fa /src/month.rs
parent54d431b34edcc702ac88ec7d88d42487c12b17b4 (diff)
Add seconds or nanoseconds to DateTime
Diffstat (limited to 'src/month.rs')
-rw-r--r--src/month.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/month.rs b/src/month.rs
index 1419717..faf891d 100644
--- a/src/month.rs
+++ b/src/month.rs
@@ -405,7 +405,7 @@ impl Month {
let zero_indexed_month = zero_indexed_num % 12;
let month = match Self::from_u8((zero_indexed_month as u8) + 1) {
Some(month) => month,
- None => unsafe { std::hint::unreachable_unchecked() },
+ None => unsafe { core::hint::unreachable_unchecked() },
};
(month, wraps)