Skip to content

Commit

Permalink
Disallow unnecessary import braces
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryant Mairs committed Jan 15, 2018
1 parent 8692d66 commit 29679a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#![recursion_limit = "500"]
#![deny(unused_qualifications)]
#![deny(unstable_features)]
#![deny(unused_import_braces)]

#[macro_use]
extern crate bitflags;
Expand Down
4 changes: 2 additions & 2 deletions src/sys/socket/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ impl fmt::Display for SockAddr {

#[cfg(any(target_os = "android", target_os = "linux"))]
pub mod netlink {
use ::sys::socket::addr::{AddressFamily};
use ::sys::socket::addr::AddressFamily;
use libc::{sa_family_t, sockaddr_nl};
use std::{fmt, mem};
use std::hash::{Hash, Hasher};
Expand Down Expand Up @@ -1012,7 +1012,7 @@ pub mod netlink {

#[cfg(any(target_os = "ios", target_os = "macos"))]
pub mod sys_control {
use ::sys::socket::addr::{AddressFamily};
use ::sys::socket::addr::AddressFamily;
use libc::{self, c_uchar, uint16_t, uint32_t};
use std::{fmt, mem};
use std::hash::{Hash, Hasher};
Expand Down
2 changes: 1 addition & 1 deletion src/unistd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::{fmt, mem, ptr};
use std::ffi::{CString, CStr, OsString, OsStr};
use std::os::unix::ffi::{OsStringExt, OsStrExt};
use std::os::unix::io::RawFd;
use std::path::{PathBuf};
use std::path::PathBuf;
use void::Void;
use sys::stat::Mode;

Expand Down

0 comments on commit 29679a4

Please sign in to comment.