From 65cf2167bd1ba237263cd180075374b067ccbac9 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Wed, 13 Sep 2023 15:26:43 -0600 Subject: [PATCH] Silence two misguided clippy warnings --- src/lab.rs | 1 + src/process.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lab.rs b/src/lab.rs index 502ab62b..8e6d54e8 100644 --- a/src/lab.rs +++ b/src/lab.rs @@ -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, diff --git a/src/process.rs b/src/process.rs index 5911bcd7..bcf832ba 100644 --- a/src/process.rs +++ b/src/process.rs @@ -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};