Skip to content

Commit 067c199

Browse files
committed
Remove unused imports
1 parent f720855 commit 067c199

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/cargo/util/errors.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ pub fn process_error(
307307

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

313312
if let Some(signal) = status.signal() {

src/cargo/util/paths.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ pub fn path2bytes(path: &Path) -> CargoResult<&[u8]> {
217217

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

0 commit comments

Comments
 (0)