From f49be3176237c0c35ef787e07eb499e6c2c6c6e1 Mon Sep 17 00:00:00 2001 From: Peter Limkilde Svendsen <peter.limkilde@gmail.com> Date: Thu, 18 Feb 2021 23:41:26 +0100 Subject: [PATCH] Use as-less cast --- src/header/time/constants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/header/time/constants.rs b/src/header/time/constants.rs index 8e8bd804..303a3893 100644 --- a/src/header/time/constants.rs +++ b/src/header/time/constants.rs @@ -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] = [ -- GitLab