Fixed all Rust code warnings

This commit is contained in:
Syrus Akbary
2018-11-06 15:51:01 +01:00
parent 18ece1216f
commit e7b4d06ec0
10 changed files with 86 additions and 96 deletions

View File

@ -6,12 +6,9 @@ pub mod module;
pub mod relocation;
pub mod utils;
use cranelift_native;
use std::panic;
use std::ptr;
use std::str::FromStr;
use std::time::{Duration, Instant};
use target_lexicon::{self, Triple};
use target_lexicon;
use wasmparser;
pub use self::errors::{Error, ErrorKind};
@ -58,8 +55,8 @@ pub fn instantiate(
/// a WebAssembly module directly from a streamed underlying source.
/// This is the most efficient, optimized way to load wasm code.
pub fn instantiate_streaming(
buffer_source: Vec<u8>,
import_object: ImportObject<&str, &str>,
_buffer_source: Vec<u8>,
_import_object: ImportObject<&str, &str>,
) -> Result<ResultObject, ErrorKind> {
unimplemented!();
}