From a176e5c1ca70de103a4d3f50f211278440d26092 Mon Sep 17 00:00:00 2001 From: Fabian Drinck Date: Tue, 19 Mar 2019 20:35:13 +0100 Subject: [PATCH] Remove redundant imports --- src/cargo/util/errors.rs | 1 - src/cargo/util/paths.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/src/cargo/util/errors.rs b/src/cargo/util/errors.rs index fb50157ff50..a3f071c9fe5 100644 --- a/src/cargo/util/errors.rs +++ b/src/cargo/util/errors.rs @@ -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() { diff --git a/src/cargo/util/paths.rs b/src/cargo/util/paths.rs index c61b71b8f7d..8556450ece6 100644 --- a/src/cargo/util/paths.rs +++ b/src/cargo/util/paths.rs @@ -218,7 +218,6 @@ pub fn path2bytes(path: &Path) -> CargoResult<&[u8]> { #[cfg(unix)] pub fn bytes2path(bytes: &[u8]) -> CargoResult { - use std::ffi::OsStr; use std::os::unix::prelude::*; Ok(PathBuf::from(OsStr::from_bytes(bytes))) }