From 9c442f6be1bb1d1ece9d340b8fd9a0cfeb298d45 Mon Sep 17 00:00:00 2001 From: Sergey Pepyakin Date: Tue, 5 Dec 2017 18:12:10 +0100 Subject: [PATCH] Fixes --- src/interpreter/mod.rs | 5 +++-- src/interpreter/runner.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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;