mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-05-29 15:41:36 +00:00
fix warnings
This commit is contained in:
parent
f2ee624cea
commit
0bcf7da546
@ -23,6 +23,7 @@ pub trait UserFunctionExecutor {
|
||||
fn execute(&mut self, name: &str, context: CallerContext) -> Result<Option<RuntimeValue>, Error>;
|
||||
}
|
||||
|
||||
/// User function descriptor
|
||||
#[derive(Clone)]
|
||||
pub enum UserFunctionDescriptor {
|
||||
Static(&'static str, &'static [ValueType]),
|
||||
@ -32,7 +33,9 @@ pub enum UserFunctionDescriptor {
|
||||
/// User function type.
|
||||
#[derive(Clone)]
|
||||
pub struct UserFunction {
|
||||
/// Descriptor with variable-length definitions
|
||||
pub desc: UserFunctionDescriptor,
|
||||
/// Return type of the signature
|
||||
pub result: Option<ValueType>,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user