diff --git a/src/sys/unix.rs b/src/sys/unix.rs
index 7a185a5d..b62393df 100644
--- a/src/sys/unix.rs
+++ b/src/sys/unix.rs
@@ -7,11 +7,6 @@
// except according to those terms.
use std::cmp::min;
-#[cfg(all(
- feature = "all",
- any(target_os = "android", target_os = "fuchsia", target_os = "linux")
-))]
-use std::ffi::{CStr, CString};
#[cfg(not(target_os = "redox"))]
use std::io::IoSlice;
use std::marker::PhantomData;
@@ -942,10 +937,10 @@ impl crate::Socket {
feature = "all",
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
))]
- pub fn device(&self) -> io::Result