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

@@ -2,9 +2,8 @@
#![allow(clippy::use_self)]
use crate::wasi;
use std::convert::Infallible;
use std::fmt;
use std::num::TryFromIntError;
use std::str;
use std::{fmt, str};
use thiserror::Error;
#[derive(Clone, Copy, Debug, Error, Eq, PartialEq)]

View File

@@ -2,7 +2,6 @@
use crate::ctx::WasiCtx;
use crate::{wasi, wasi32};
use log::trace;
use wasi_common_cbindgen::wasi_common_cbindgen;
#[wasi_common_cbindgen]

View File

@@ -6,9 +6,8 @@
#![allow(non_snake_case)]
#![allow(dead_code)]
use wig::witx_wasi32_types;
use crate::wasi::*;
use wig::witx_wasi32_types;
pub type uintptr_t = u32;
pub type size_t = u32;