From 6e62ea7cfb9a5f51bd393a4ddec224ce08d0da0f Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Tue, 12 Mar 2019 09:51:54 +0100 Subject: [PATCH] fix(runtime-core) Remove unused imports. This patch removes unused imports as reported by `rustc` as warnings. --- lib/runtime-core/src/error.rs | 7 ++----- lib/runtime-core/src/typed_func.rs | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/runtime-core/src/error.rs b/lib/runtime-core/src/error.rs index 45c627aec..9e99c2833 100644 --- a/lib/runtime-core/src/error.rs +++ b/lib/runtime-core/src/error.rs @@ -1,9 +1,6 @@ -use crate::types::{ - FuncSig, GlobalDescriptor, MemoryDescriptor, MemoryIndex, TableDescriptor, TableIndex, Type, - Value, -}; +use crate::types::{FuncSig, GlobalDescriptor, MemoryDescriptor, TableDescriptor, Type, Value}; use core::borrow::Borrow; -use std::{any::Any, sync::Arc}; +use std::any::Any; pub type Result = std::result::Result; pub type CompileResult = std::result::Result; diff --git a/lib/runtime-core/src/typed_func.rs b/lib/runtime-core/src/typed_func.rs index 6e2a4d26c..4191f347e 100644 --- a/lib/runtime-core/src/typed_func.rs +++ b/lib/runtime-core/src/typed_func.rs @@ -6,7 +6,7 @@ use crate::{ types::{FuncSig, Type, WasmExternType}, vm::Ctx, }; -use std::{any::Any, cell::UnsafeCell, fmt, marker::PhantomData, mem, panic, ptr, sync::Arc}; +use std::{any::Any, cell::UnsafeCell, marker::PhantomData, mem, panic, ptr, sync::Arc}; thread_local! { pub static EARLY_TRAPPER: UnsafeCell>> = UnsafeCell::new(None);