diff --git a/src/interpreter/mod.rs b/src/interpreter/mod.rs index 1fe782f..a2234b5 100644 --- a/src/interpreter/mod.rs +++ b/src/interpreter/mod.rs @@ -2,6 +2,7 @@ use std::any::TypeId; use validation; +use common; /// Custom user error. pub trait UserError: 'static + ::std::fmt::Display + ::std::fmt::Debug { @@ -123,8 +124,8 @@ impl From for Error { } } -impl From<::common::stack::Error> for Error { - fn from(e: ::common::stack::Error) -> Self { +impl From for Error { + fn from(e: common::stack::Error) -> Self { Error::Stack(e.to_string()) } } diff --git a/src/interpreter/runner.rs b/src/interpreter/runner.rs index 5e5f38b..c29c82f 100644 --- a/src/interpreter/runner.rs +++ b/src/interpreter/runner.rs @@ -14,7 +14,7 @@ use interpreter::value::{ }; use interpreter::variable::VariableInstance; use common::{DEFAULT_MEMORY_INDEX, DEFAULT_TABLE_INDEX, BlockFrame, BlockFrameType}; -use common::stack::{StackWithLimit}; +use common::stack::StackWithLimit; /// Function interpreter. pub struct Interpreter;