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;

View File

@@ -1,5 +1,3 @@
extern crate wasi_common_cbindgen;
pub use wasi_common_cbindgen::wasi_common_cbindgen;
#[wasi_common_cbindgen]

View File

@@ -1,5 +1,3 @@
extern crate wasi_common_cbindgen;
pub use wasi_common_cbindgen::wasi_common_cbindgen;
#[wasi_common_cbindgen]

View File

@@ -1,5 +1,3 @@
extern crate wasi_common_cbindgen;
pub use wasi_common_cbindgen::wasi_common_cbindgen;
#[wasi_common_cbindgen]

View File

@@ -1,5 +1,3 @@
extern crate wasi_common_cbindgen;
pub use wasi_common_cbindgen::wasi_common_cbindgen;
#[wasi_common_cbindgen]

View File

@@ -1,5 +1,3 @@
extern crate wasi_common_cbindgen;
pub use wasi_common_cbindgen::wasi_common_cbindgen;
#[wasi_common_cbindgen]

View File

@@ -1,7 +1,4 @@
extern crate proc_macro;
extern crate proc_macro2;
extern crate quote;
extern crate witx;
mod raw_types;
mod utils;

View File

@@ -21,9 +21,6 @@
)]
#![cfg(windows)]
#[macro_use]
extern crate bitflags;
pub mod file;
pub mod time;
pub mod winerror;