Skip to content

Commit

Permalink
merge use statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ndusart committed Jul 27, 2017
1 parent 70d59c5 commit f95c207
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/sys/socket/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,7 @@ pub mod netlink {
#[cfg(any(target_os = "ios", target_os = "macos"))]
pub mod sys_control {
use ::sys::socket::addr::{AddressFamily};
use libc;
use libc::{c_uchar, uint16_t, uint32_t};
use libc::{self, c_uchar, uint16_t, uint32_t};
use std::{fmt, mem};
use std::hash::{Hash, Hasher};
use std::os::unix::io::RawFd;
Expand Down
3 changes: 1 addition & 2 deletions src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ use {Error, Errno, Result};
use features;
use fcntl::{fcntl, FD_CLOEXEC, O_NONBLOCK};
use fcntl::FcntlArg::{F_SETFD, F_SETFL};
use libc::{c_void, c_int, socklen_t, size_t, pid_t, uid_t, gid_t};
use libc::{self, c_void, c_int, socklen_t, size_t, pid_t, uid_t, gid_t};
use std::{mem, ptr, slice};
use std::os::unix::io::RawFd;
use sys::uio::IoVec;
use libc;

mod addr;
mod ffi;
Expand Down
3 changes: 1 addition & 2 deletions src/sys/socket/sockopt.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use super::{ffi, GetSockOpt, SetSockOpt};
use libc;
use {Errno, Result};
use sys::time::TimeVal;
use libc::{c_int, uint8_t, c_void, socklen_t};
use libc::{self, c_int, uint8_t, c_void, socklen_t};
use std::mem;
use std::os::unix::io::RawFd;

Expand Down

0 comments on commit f95c207

Please sign in to comment.