From d7dc36e7526301932475a761c72f2ef46eb4bcd9 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 22 Feb 2019 14:42:18 -0800 Subject: [PATCH] Reorder the fields of Export::Function for consistency. --- lib/runtime/src/export.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/runtime/src/export.rs b/lib/runtime/src/export.rs index 8ee008aa3a..db7fb6d482 100644 --- a/lib/runtime/src/export.rs +++ b/lib/runtime/src/export.rs @@ -12,10 +12,10 @@ pub enum Export { Function { /// The address of the native-code function. address: *const VMFunctionBody, - /// The function signature declaration, used for compatibilty checking. - signature: ir::Signature, /// Pointer to the containing `VMContext`. vmctx: *mut VMContext, + /// The function signature declaration, used for compatibilty checking. + signature: ir::Signature, }, /// A table export value. @@ -53,13 +53,13 @@ impl Export { /// Construct a function export value. pub fn function( address: *const VMFunctionBody, - signature: ir::Signature, vmctx: *mut VMContext, + signature: ir::Signature, ) -> Self { Export::Function { address, - signature, vmctx, + signature, } }