From b7369d2763fe8c7061071986c41d1bcb0682f5a7 Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Wed, 17 Feb 2021 08:28:51 +0000 Subject: [PATCH] aya: sys: fix warning --- aya/src/sys/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aya/src/sys/mod.rs b/aya/src/sys/mod.rs index 35032a73..373d31aa 100644 --- a/aya/src/sys/mod.rs +++ b/aya/src/sys/mod.rs @@ -5,7 +5,9 @@ mod perf_event; #[cfg(test)] mod fake; -use std::{convert::TryInto, ffi::CString, io, mem}; +#[cfg(not(test))] +use std::convert::TryInto; +use std::{ffi::CString, io, mem}; use libc::{c_int, c_long, c_ulong, pid_t, utsname};