optimize imports (#170)

This commit is contained in:
Mackenzie Clark
2019-02-09 13:31:28 -08:00
committed by GitHub
parent e7c3b99ba9
commit 4ef7dc339c
7 changed files with 12 additions and 56 deletions

View File

@ -1,11 +1,14 @@
use super::utils::{copy_cstr_into_wasm, write_to_buf};
use libc::{c_char, c_int, time_t};
use libc::{c_char, c_int};
use std::mem;
use std::time::SystemTime;
#[cfg(not(target_os = "windows"))]
use libc::{clockid_t, time as libc_time};
#[cfg(target_os = "windows")]
use libc::time_t;
#[cfg(target_os = "windows")]
type clockid_t = c_int;