From 08f22b87d9ef9b399af59a4df5c7cfaa9fa2547f Mon Sep 17 00:00:00 2001 From: Jamie Hill-Daniel Date: Fri, 20 May 2022 13:25:46 +0100 Subject: [PATCH] Remove `const` from transmute function --- src/rust/iced-x86/src/formatter/fmt_opt_provider.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/iced-x86/src/formatter/fmt_opt_provider.rs b/src/rust/iced-x86/src/formatter/fmt_opt_provider.rs index 6c84115f0..dde12bf3a 100644 --- a/src/rust/iced-x86/src/formatter/fmt_opt_provider.rs +++ b/src/rust/iced-x86/src/formatter/fmt_opt_provider.rs @@ -98,7 +98,7 @@ impl FormatterOperandOptions { /// Memory size options #[must_use] #[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 unsafe { mem::transmute((self.flags >> FormatterOperandOptionsFlags::MEMORY_SIZE_SHIFT) as MemorySizeOptionsUnderlyingType) } }