We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f720855 commit 067c199Copy full SHA for 067c199
src/cargo/util/errors.rs
@@ -307,7 +307,6 @@ pub fn process_error(
307
308
#[cfg(unix)]
309
fn status_to_string(status: ExitStatus) -> String {
310
- use libc;
311
use std::os::unix::process::*;
312
313
if let Some(signal) = status.signal() {
src/cargo/util/paths.rs
@@ -217,7 +217,6 @@ pub fn path2bytes(path: &Path) -> CargoResult<&[u8]> {
217
218
219
pub fn bytes2path(bytes: &[u8]) -> CargoResult<PathBuf> {
220
- use std::ffi::OsStr;
221
use std::os::unix::prelude::*;
222
Ok(PathBuf::from(OsStr::from_bytes(bytes)))
223
}
0 commit comments