mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-14 01:21:19 +00:00
Cleanup.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user