Tidy up redundant use declarations. (#3333)

This is just a minor code cleanup.
This commit is contained in:
Dan Gohman
2021-09-11 10:26:54 -07:00
committed by GitHub
parent 587f603018
commit 256e942aa0
5 changed files with 0 additions and 9 deletions

View File

@@ -13,9 +13,6 @@ use cranelift_module::{
DataContext, DataDescription, DataId, FuncId, Init, Linkage, Module, ModuleCompiledFunction,
ModuleDeclarations, ModuleError, ModuleResult, RelocRecord,
};
use cranelift_native;
#[cfg(not(windows))]
use libc;
use log::info;
use std::collections::HashMap;
use std::convert::{TryFrom, TryInto};
@@ -25,8 +22,6 @@ use std::ptr;
use std::ptr::NonNull;
use std::sync::atomic::{AtomicPtr, Ordering};
use target_lexicon::PointerWidth;
#[cfg(windows)]
use winapi;
const EXECUTABLE_DATA_ALIGNMENT: u64 = 0x10;
const WRITABLE_DATA_ALIGNMENT: u64 = 0x8;

View File

@@ -1,4 +1,3 @@
use capstone;
use thiserror::Error;
use wasmparser::BinaryReaderError;

View File

@@ -1,5 +1,4 @@
use std::{env, process};
use wasi;
use wasi_tests::open_scratch_directory;
unsafe fn test_fd_fdstat_set_flags(dir_fd: wasi::Fd) {

View File

@@ -1,4 +1,3 @@
use libc;
use more_asserts::assert_gt;
use std::{env, process};
use wasi_tests::{assert_errno, open_scratch_directory};

View File

@@ -1,4 +1,3 @@
use libc;
use more_asserts::assert_gt;
use std::{env, process};
use wasi_tests::open_scratch_directory;