mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-24 12:12:05 +00:00
remove Error::NotImplemented
This commit is contained in:
@ -27,8 +27,6 @@ pub enum Error {
|
||||
Interpreter(String),
|
||||
/// Trap.
|
||||
Trap(String),
|
||||
/// Functionality not yet implemented.
|
||||
NotImplemented,
|
||||
}
|
||||
|
||||
impl Into<String> for Error {
|
||||
@ -46,7 +44,6 @@ impl Into<String> for Error {
|
||||
Error::Interpreter(s) => s,
|
||||
Error::Value(s) => s,
|
||||
Error::Trap(s) => format!("trap: {}", s),
|
||||
Error::NotImplemented => "not implemented".into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ impl TableInstance {
|
||||
for val in value {
|
||||
match self.variable_type {
|
||||
VariableType::AnyFunc => self.set(offset, RuntimeValue::AnyFunc(*val))?,
|
||||
_ => return Err(Error::NotImplemented),
|
||||
_ => return Err(Error::Table(format!("table of type {:?} is not supported", self.variable_type))),
|
||||
}
|
||||
offset += 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user