From a937988d7c31d36fe47c136c2c4d8942ea236bd8 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 2 May 2020 23:23:11 -0600 Subject: Fix an "unused import" warning on FreeBSD in test_scm_credentials --- test/sys/test_socket.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/sys/test_socket.rs') diff --git a/test/sys/test_socket.rs b/test/sys/test_socket.rs index 20ff8d78..9bf45828 100644 --- a/test/sys/test_socket.rs +++ b/test/sys/test_socket.rs @@ -762,12 +762,12 @@ pub fn test_sendmsg_empty_cmsgs() { fn test_scm_credentials() { use nix::sys::uio::IoVec; use nix::unistd::{close, getpid, getuid, getgid}; - use nix::sys::socket::{socketpair, sendmsg, recvmsg, setsockopt, + use nix::sys::socket::{socketpair, sendmsg, recvmsg, AddressFamily, SockType, SockFlag, ControlMessage, ControlMessageOwned, MsgFlags, UnixCredentials}; #[cfg(any(target_os = "android", target_os = "linux"))] - use nix::sys::socket::sockopt::PassCred; + use nix::sys::socket::{setsockopt, sockopt::PassCred}; let (send, recv) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()) .unwrap(); -- cgit v1.2.3