소스 검색

Use as-less cast

Peter Limkilde Svendsen 4 년 전
부모
커밋
f49be31762
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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] = [