Remove unneeded extern crate, macro_use, and tidy uses.

This commit is contained in:
Dan Gohman
2019-11-08 17:13:06 -08:00
parent 31f8f124f5
commit 061b453255
62 changed files with 126 additions and 262 deletions

View File

@@ -1,5 +1,3 @@
#[macro_use]
extern crate log;
extern crate alloc;
extern crate core;

View File

@@ -1,10 +1,10 @@
use crate::host;
use crate::host::{argv_environ_values, fd_prestats, fd_table};
use crate::instantiate::WASIState;
use crate::translate::*;
use crate::wasm32;
use crate::{host, wasm32};
use core::convert::TryFrom;
use cranelift_codegen::ir::types::{Type, I32, I64};
use log::{log_enabled, trace};
use std::{mem, ptr, slice, str};
use wasmtime_runtime::VMContext;

View File

@@ -1,6 +1,6 @@
use crate::host;
use crate::wasm32;
use crate::{host, wasm32};
use core::convert::TryFrom;
use log::{debug, error};
use more_asserts::assert_le;
use std::mem::{align_of, size_of, zeroed};
use std::slice;