mirror of https://github.com/icedland/iced.git
Remove `const` from transmute function
This commit is contained in:
parent
afaefcc1ef
commit
08f22b87d9
|
@ -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) }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue