mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
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:
commit
ff1c9de432
@ -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() {
|
||||
|
@ -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)))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user