From 8eb917ccbbd89372ba4caad6772e4a1acd6586e3 Mon Sep 17 00:00:00 2001 From: Christian Krause Date: Tue, 28 May 2024 07:21:58 +0200 Subject: [PATCH] fixes clippy::needless_pass_by_ref_mut --- src/analysis.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/analysis.rs b/src/analysis.rs index 9c1f42a..e9f518e 100644 --- a/src/analysis.rs +++ b/src/analysis.rs @@ -196,12 +196,7 @@ impl Analysis { self.insert(newfd, summary, syscall, f); } - fn syscall_clone( - &mut self, - cap: &Captures, - input: P, - f: F, - ) -> Result<()> + fn syscall_clone(&self, cap: &Captures, input: P, f: F) -> Result<()> where F: Fn(Summary) + Copy, P: AsRef,