Skip to content

Commit

Permalink
Fix an "unused import" warning on FreeBSD in test_scm_credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed May 3, 2020
1 parent 539c570 commit a937988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sys/test_socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a937988

Please sign in to comment.