Skip to content

Commit

Permalink
Silence Clippy warning
Browse files Browse the repository at this point in the history
In newer version of Rust, Clippy complains about us potentially leaking
a process in our test code. The code is working exactly as intended, so
silence the warning.
  • Loading branch information
d-e-s-o committed Nov 30, 2024
1 parent d18516d commit 6e9d217
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tty/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ mod tests {
return;
}

#[allow(clippy::zombie_processes)]
fn test(stdin: process::Stdio, redirection: &str) {
let mut child = process::Command::new("sh")
.stdin(stdin)
Expand Down

0 comments on commit 6e9d217

Please sign in to comment.