Skip to content

Commit

Permalink
Remove redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fabric-and-ink committed Mar 19, 2019
1 parent 26d66b2 commit a176e5c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/cargo/util/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ pub fn process_error(

#[cfg(unix)]
fn status_to_string(status: ExitStatus) -> String {
use libc;
use std::os::unix::process::*;

if let Some(signal) = status.signal() {
Expand Down
1 change: 0 additions & 1 deletion src/cargo/util/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ pub fn path2bytes(path: &Path) -> CargoResult<&[u8]> {

#[cfg(unix)]
pub fn bytes2path(bytes: &[u8]) -> CargoResult<PathBuf> {
use std::ffi::OsStr;
use std::os::unix::prelude::*;
Ok(PathBuf::from(OsStr::from_bytes(bytes)))
}
Expand Down

0 comments on commit a176e5c

Please sign in to comment.