Fix warning.

This commit is contained in:
Gav
2018-01-09 15:50:48 +01:00
parent 2489b3a9aa
commit f3dd41efd6
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ impl_function_executor!(this: FunctionExecutor<'e, E>,
} else { 0 }
},
ext_deposit_log(_log_data: *const u8, _log_len: u32) => {
unimplemented!()
// TODO
}
=> <'e, E: Externalities + 'e>
);
+4 -4
View File
@@ -75,13 +75,13 @@ macro_rules! reverse_params {
#[macro_export]
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 ) => ({
reverse_params!($body, $self, $context, $( $names : $params ),*);
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() }))
})
}