This commit is contained in:
Sergey Pepyakin 2017-12-05 18:12:10 +01:00
parent 93b61bc2dc
commit 9c442f6be1
2 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@
use std::any::TypeId; use std::any::TypeId;
use validation; use validation;
use common;
/// Custom user error. /// Custom user error.
pub trait UserError: 'static + ::std::fmt::Display + ::std::fmt::Debug { pub trait UserError: 'static + ::std::fmt::Display + ::std::fmt::Debug {
@ -123,8 +124,8 @@ impl From<validation::Error> for Error {
} }
} }
impl From<::common::stack::Error> for Error { impl From<common::stack::Error> for Error {
fn from(e: ::common::stack::Error) -> Self { fn from(e: common::stack::Error) -> Self {
Error::Stack(e.to_string()) Error::Stack(e.to_string())
} }
} }

View File

@ -14,7 +14,7 @@ use interpreter::value::{
}; };
use interpreter::variable::VariableInstance; use interpreter::variable::VariableInstance;
use common::{DEFAULT_MEMORY_INDEX, DEFAULT_TABLE_INDEX, BlockFrame, BlockFrameType}; use common::{DEFAULT_MEMORY_INDEX, DEFAULT_TABLE_INDEX, BlockFrame, BlockFrameType};
use common::stack::{StackWithLimit}; use common::stack::StackWithLimit;
/// Function interpreter. /// Function interpreter.
pub struct Interpreter; pub struct Interpreter;