Skip to content

Commit a937988

Browse files
committed
Fix an "unused import" warning on FreeBSD in test_scm_credentials
1 parent 539c570 commit a937988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sys/test_socket.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,12 +762,12 @@ pub fn test_sendmsg_empty_cmsgs() {
762762
fn test_scm_credentials() {
763763
use nix::sys::uio::IoVec;
764764
use nix::unistd::{close, getpid, getuid, getgid};
765-
use nix::sys::socket::{socketpair, sendmsg, recvmsg, setsockopt,
765+
use nix::sys::socket::{socketpair, sendmsg, recvmsg,
766766
AddressFamily, SockType, SockFlag,
767767
ControlMessage, ControlMessageOwned, MsgFlags,
768768
UnixCredentials};
769769
#[cfg(any(target_os = "android", target_os = "linux"))]
770-
use nix::sys::socket::sockopt::PassCred;
770+
use nix::sys::socket::{setsockopt, sockopt::PassCred};
771771

772772
let (send, recv) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty())
773773
.unwrap();

0 commit comments

Comments
 (0)