Skip to content

Commit f95c207

Browse files
committed
merge use statements
1 parent 70d59c5 commit f95c207

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/sys/socket/addr.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,7 @@ pub mod netlink {
812812
#[cfg(any(target_os = "ios", target_os = "macos"))]
813813
pub mod sys_control {
814814
use ::sys::socket::addr::{AddressFamily};
815-
use libc;
816-
use libc::{c_uchar, uint16_t, uint32_t};
815+
use libc::{self, c_uchar, uint16_t, uint32_t};
817816
use std::{fmt, mem};
818817
use std::hash::{Hash, Hasher};
819818
use std::os::unix::io::RawFd;

src/sys/socket/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ use {Error, Errno, Result};
55
use features;
66
use fcntl::{fcntl, FD_CLOEXEC, O_NONBLOCK};
77
use fcntl::FcntlArg::{F_SETFD, F_SETFL};
8-
use libc::{c_void, c_int, socklen_t, size_t, pid_t, uid_t, gid_t};
8+
use libc::{self, c_void, c_int, socklen_t, size_t, pid_t, uid_t, gid_t};
99
use std::{mem, ptr, slice};
1010
use std::os::unix::io::RawFd;
1111
use sys::uio::IoVec;
12-
use libc;
1312

1413
mod addr;
1514
mod ffi;

src/sys/socket/sockopt.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use super::{ffi, GetSockOpt, SetSockOpt};
2-
use libc;
32
use {Errno, Result};
43
use sys::time::TimeVal;
5-
use libc::{c_int, uint8_t, c_void, socklen_t};
4+
use libc::{self, c_int, uint8_t, c_void, socklen_t};
65
use std::mem;
76
use std::os::unix::io::RawFd;
87

0 commit comments

Comments
 (0)