mirror of
https://github.com/rust-lang/cargo
synced 2024-08-25 10:35:53 +00:00
Fix unused import warning.
This commit is contained in:
parent
4986d8ce89
commit
ee6e1c560c
|
@ -131,8 +131,6 @@ fn ctrl_c_kills_everyone() {
|
|||
|
||||
#[cfg(unix)]
|
||||
fn ctrl_c(child: &mut Child) {
|
||||
use libc;
|
||||
|
||||
let r = unsafe { libc::kill(-(child.id() as i32), libc::SIGINT) };
|
||||
if r < 0 {
|
||||
panic!("failed to kill: {}", io::Error::last_os_error());
|
||||
|
|
Loading…
Reference in a new issue