From 0b1f51f80427a79fbd7d77849f7e2301a1d128f5 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Mon, 8 Aug 2022 15:48:03 -0700 Subject: [PATCH] Remove unnecessary parens around expression (#4647) Fixes a compiler warning. --- crates/runtime/src/table.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/runtime/src/table.rs b/crates/runtime/src/table.rs index ca13a846b1..70bea7014f 100644 --- a/crates/runtime/src/table.rs +++ b/crates/runtime/src/table.rs @@ -103,7 +103,7 @@ impl TableElement { /// The same warnings as for `into_table_values()` apply. pub(crate) unsafe fn into_ref_asserting_initialized(self) -> usize { match self { - Self::FuncRef(e) => (e as usize), + Self::FuncRef(e) => e as usize, Self::ExternRef(e) => e.map_or(0, |e| e.into_raw() as usize), Self::UninitFunc => panic!("Uninitialized table element value outside of table slot"), }