Skip to content

Commit

Permalink
Auto merge of #6807 - ehuss:libc-warning, r=alexcrichton
Browse files Browse the repository at this point in the history
Fix unused import warning.

2019-04-01 nightly introduced a new warning (presumably rust-lang/rust#58805).
  • Loading branch information
bors committed Apr 1, 2019
2 parents 4986d8c + ee6e1c5 commit 038edb6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/testsuite/death.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 038edb6

Please sign in to comment.