diff --git a/src/common/stdio.rs b/src/common/stdio.rs index 89748165a..47d4c8bed 100644 --- a/src/common/stdio.rs +++ b/src/common/stdio.rs @@ -1,6 +1,6 @@ use libc; use std::fs::File; -use std::io::{Read, Write}; +use std::io::{Read}; use std::os::unix::io::FromRawFd; // A struct to hold the references to the base stdout and the captured one diff --git a/src/emtests/_common.rs b/src/emtests/_common.rs index 893ced4cc..3d3c151aa 100644 --- a/src/emtests/_common.rs +++ b/src/emtests/_common.rs @@ -16,9 +16,6 @@ macro_rules! assert_emscripten_output { isa: get_isa(), }); let mut result_object = instantiate(wasm_bytes.to_vec(), import_object, options).expect("Not compiled properly"); - // We use this as a way of hacking the stdout and remove the data that should be flushed - (StdioCapturer::new()).end(); - let capturer = StdioCapturer::new(); start_instance(&result_object.module, &mut result_object.instance, $name, $args).unwrap(); let output = capturer.end().0;