Use as-less cast

This commit is contained in:
Peter Limkilde Svendsen
2021-02-18 23:41:26 +01:00
parent e24d27a0b3
commit f49be31762
+1 -1
View File
@@ -10,7 +10,7 @@ pub mod sys;
#[path = "redox.rs"]
pub mod sys;
pub(crate) const UTC: *const c_char = b"UTC\0" as *const u8 as *const c_char;
pub(crate) const UTC: *const c_char = b"UTC\0".as_ptr().cast();
pub(crate) const DAY_NAMES: [&str; 7] = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
pub(crate) const MON_NAMES: [&str; 12] = [