]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_data_structures/small_c_str.rs
Rollup merge of #68233 - danielframpton:update-compiler-builtins, r=alexcrichton
[rust.git] / src / librustc_data_structures / small_c_str.rs
index 9d90b9052d1c200f9724c1e8ddb1c6bd01072a2b..4a089398ce61e23e98ea6c78a84d6fe5438eaa59 100644 (file)
@@ -44,12 +44,9 @@ pub fn new_with_nul(s: &str) -> SmallCStr {
         SmallCStr { data: SmallVec::from_slice(s.as_bytes()) }
     }
 
-
     #[inline]
     pub fn as_c_str(&self) -> &ffi::CStr {
-        unsafe {
-            ffi::CStr::from_bytes_with_nul_unchecked(&self.data[..])
-        }
+        unsafe { ffi::CStr::from_bytes_with_nul_unchecked(&self.data[..]) }
     }
 
     #[inline]