Skip to content

Commit

Permalink
Silence two misguided clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Sep 13, 2023
1 parent e53cfa4 commit 65cf216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ pub fn test_unmutated_then_all_mutants(
///
/// The [BuildDir] is passed as mutable because it's for the exclusive use of this function for the
/// duration of the test.
#[allow(clippy::needless_pass_by_ref_mut)]
fn test_scenario(
tool: &dyn Tool,
build_dir: &mut BuildDir,
Expand Down
1 change: 1 addition & 0 deletions src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ impl Process {
}

#[cfg(unix)]
#[allow(clippy::needless_pass_by_ref_mut)] // To match Windows
fn terminate_child_impl(child: &mut Popen) -> Result<()> {
use nix::errno::Errno;
use nix::sys::signal::{killpg, Signal};
Expand Down

0 comments on commit 65cf216

Please sign in to comment.