Auto merge of #6763 - fabric-and-ink:remove_redundant_imports, r=ehuss

Remove redundant imports

Removes two redundant imports. These showed up while working on a [lint for rustc](https://github.com/rust-lang/rust/pull/58805/).
This commit is contained in:
bors 2019-03-19 20:16:43 +00:00
commit ff1c9de432
2 changed files with 0 additions and 2 deletions

View File

@ -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() {

View File

@ -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)))
}