Remove `const` from transmute function

This commit is contained in:
Jamie Hill-Daniel 2022-05-20 13:25:46 +01:00
parent afaefcc1ef
commit 08f22b87d9
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ impl FormatterOperandOptions {
/// Memory size options /// Memory size options
#[must_use] #[must_use]
#[inline] #[inline]
pub const fn memory_size_options(&self) -> MemorySizeOptions { pub fn memory_size_options(&self) -> MemorySizeOptions {
// SAFETY: the bits can only be a valid enum value // SAFETY: the bits can only be a valid enum value
unsafe { mem::transmute((self.flags >> FormatterOperandOptionsFlags::MEMORY_SIZE_SHIFT) as MemorySizeOptionsUnderlyingType) } unsafe { mem::transmute((self.flags >> FormatterOperandOptionsFlags::MEMORY_SIZE_SHIFT) as MemorySizeOptionsUnderlyingType) }
} }