Browse Source

Merge branch 'time-utc-cast' into 'master'

Use as-less cast for UTC string

See merge request redox-os/relibc!331
Jeremy Soller 4 years ago
parent
commit
6b5706dc95
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/header/time/constants.rs

+ 1 - 1
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] = [