update some cfg to get rid of the annoying warnings

pull/111/head
hsqStephenZhang 3 years ago
parent b82d7f0515
commit 50255d0683

@ -5,11 +5,14 @@ mod perf_event;
#[cfg(test)]
mod fake;
#[cfg(not(test))]
use libc::utsname;
use libc::{c_int, c_long, pid_t};
#[cfg(not(test))]
use std::convert::TryInto;
use std::{ffi::CString, io, mem};
use libc::{c_int, c_long, pid_t, utsname};
use std::io;
#[cfg(not(test))]
use std::{ffi::CString, mem};
pub(crate) use bpf::*;
#[cfg(test)]

Loading…
Cancel
Save