Skip to content

Commit

Permalink
refactor: remove redundant imports to fix CI (#2320)
Browse files Browse the repository at this point in the history
* refactor: remove redundant imports to fix CI

* refactor: remove redundant imports to fix CI
  • Loading branch information
SteveLauC authored Feb 24, 2024
1 parent 197f55b commit 08e05a5
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/errno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use crate::Result;
use cfg_if::cfg_if;
use libc::{c_int, c_void};
use std::convert::TryFrom;
use std::{error, fmt, io};

pub use self::consts::*;
Expand Down
2 changes: 1 addition & 1 deletion src/fcntl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use crate::errno::Errno;
#[cfg(all(target_os = "freebsd", target_arch = "x86_64"))]
use core::slice;
use libc::{self, c_int, c_uint, size_t, ssize_t};
use libc::{c_int, c_uint, size_t, ssize_t};
#[cfg(any(
target_os = "netbsd",
apple_targets,
Expand Down
1 change: 0 additions & 1 deletion src/sys/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// https://github.com/rust-lang/libc/issues/1848
pub use libc::{suseconds_t, time_t};
use libc::{timespec, timeval};
use std::convert::From;
use std::time::Duration;
use std::{cmp, fmt, ops};

Expand Down
3 changes: 1 addition & 2 deletions src/unistd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ use crate::{Error, NixPath, Result};
#[cfg(not(target_os = "redox"))]
use cfg_if::cfg_if;
use libc::{
self, c_char, c_int, c_long, c_uint, gid_t, mode_t, off_t, pid_t, size_t,
uid_t,
c_char, c_int, c_long, c_uint, gid_t, mode_t, off_t, pid_t, size_t, uid_t,
};
use std::convert::Infallible;
#[cfg(not(target_os = "redox"))]
Expand Down
1 change: 0 additions & 1 deletion test/sys/test_select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ macro_rules! generate_fdset_bad_fd_tests {

mod test_fdset_too_large_fd {
use super::*;
use std::convert::TryInto;
generate_fdset_bad_fd_tests!(
FD_SETSIZE.try_into().unwrap(),
insert,
Expand Down
1 change: 0 additions & 1 deletion test/sys/test_signal.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use nix::errno::Errno;
use nix::sys::signal::*;
use nix::unistd::*;
use std::convert::TryFrom;
use std::hash::{Hash, Hasher};
use std::sync::atomic::{AtomicBool, Ordering};
#[cfg(not(target_os = "redox"))]
Expand Down
1 change: 0 additions & 1 deletion test/sys/test_termios.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::convert::TryFrom;
use std::os::unix::io::{AsFd, AsRawFd};
use tempfile::tempfile;

Expand Down

0 comments on commit 08e05a5

Please sign in to comment.