Reduce the scope of the allowed unsafe code in gfx::text.

This commit is contained in:
Ms2ger 2016-06-05 12:30:34 +02:00
parent 75ea39c709
commit db5ddb561c
3 changed files with 3 additions and 1 deletions

View file

@ -627,6 +627,7 @@ impl<'a> GlyphStore {
/// Used for SIMD.
#[inline]
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
#[allow(unsafe_code)]
fn transmute_entry_buffer_to_u32_buffer(&self) -> &[u32] {
unsafe { mem::transmute(self.entry_buffer.as_slice()) }
}