This commit is contained in:
losfair
2019-03-19 20:01:38 +08:00
parent 61abe70042
commit a006a368c5
3 changed files with 1 additions and 25 deletions

View File

@ -5,7 +5,6 @@ use crate::types::{
use core::borrow::Borrow;
use std::any::Any;
use std::sync::Arc;
use wasmparser::BinaryReaderError;
pub type Result<T> = std::result::Result<T, Error>;
pub type CompileResult<T> = std::result::Result<T, CompileError>;
@ -25,14 +24,6 @@ pub enum CompileError {
InternalError { msg: String },
}
impl From<BinaryReaderError> for CompileError {
fn from(other: BinaryReaderError) -> CompileError {
CompileError::InternalError {
msg: format!("{:?}", other),
}
}
}
impl PartialEq for CompileError {
fn eq(&self, _other: &CompileError) -> bool {
false