Skip to content
Snippets Groups Projects
Commit f3dd41ef authored by Gav's avatar Gav
Browse files

Fix warning.

parent 2489b3a9
Branches
No related merge requests found
...@@ -137,7 +137,7 @@ impl_function_executor!(this: FunctionExecutor<'e, E>, ...@@ -137,7 +137,7 @@ impl_function_executor!(this: FunctionExecutor<'e, E>,
} else { 0 } } else { 0 }
}, },
ext_deposit_log(_log_data: *const u8, _log_len: u32) => { ext_deposit_log(_log_data: *const u8, _log_len: u32) => {
unimplemented!() // TODO
} }
=> <'e, E: Externalities + 'e> => <'e, E: Externalities + 'e>
); );
......
...@@ -75,13 +75,13 @@ macro_rules! reverse_params { ...@@ -75,13 +75,13 @@ macro_rules! reverse_params {
#[macro_export] #[macro_export]
macro_rules! marshall { macro_rules! marshall {
( $context:ident, $self:ident, ( $( $names:ident : $params:ty ),* ) -> $returns:ty => $body:tt ) => ({
let r : <$returns as $crate::wasm_utils::ConvertibleToWasm>::NativeType = reverse_params!($body, $self, $context, $( $names : $params ),*);
Ok(Some({ use $crate::wasm_utils::ConvertibleToWasm; r.to_runtime_value() }))
});
( $context:ident, $self:ident, ( $( $names:ident : $params:ty ),* ) => $body:tt ) => ({ ( $context:ident, $self:ident, ( $( $names:ident : $params:ty ),* ) => $body:tt ) => ({
reverse_params!($body, $self, $context, $( $names : $params ),*); reverse_params!($body, $self, $context, $( $names : $params ),*);
Ok(None) Ok(None)
});
( $context:ident, $self:ident, ( $( $names:ident : $params:ty ),* ) -> $returns:ty => $body:tt ) => ({
let r : <$returns as $crate::wasm_utils::ConvertibleToWasm>::NativeType = reverse_params!($body, $self, $context, $( $names : $params ),*);
Ok(Some({ use $crate::wasm_utils::ConvertibleToWasm; r.to_runtime_value() }))
}) })
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment