From d9b952e29065a2f78e22d107066b285a6ed10cea Mon Sep 17 00:00:00 2001 From: Mohammed Ghannam Date: Mon, 15 Jan 2024 19:04:24 +0100 Subject: [PATCH] Clippy: allow too many arguments --- Cargo.toml | 3 +++ src/model.rs | 2 -- src/scip.rs | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 461bf7e..f74186f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,3 +17,6 @@ doc-comment = "0.3.3" [dev-dependencies] rayon = "1.5.1" + +[lints.clippy] +too_many_arguments = "allow" \ No newline at end of file diff --git a/src/model.rs b/src/model.rs index 5e6474f..f0cc67b 100644 --- a/src/model.rs +++ b/src/model.rs @@ -242,7 +242,6 @@ impl Model { /// # Returns /// /// This function returns the `Model` instance for which the heuristic was included. This allows for method chaining. - #[allow(clippy::too_many_arguments)] pub fn include_heur( self, name: &str, @@ -574,7 +573,6 @@ pub trait ProblemOrSolving { /// # Panics /// /// This method panics if the constraint cannot be created in the current state. - #[allow(clippy::too_many_arguments)] fn add_cons_quadratic( &mut self, lin_vars: Vec>, diff --git a/src/scip.rs b/src/scip.rs index 8b3cc67..a37d769 100644 --- a/src/scip.rs +++ b/src/scip.rs @@ -348,7 +348,6 @@ impl ScipPtr { Ok(Constraint { raw: scip_cons }) } - #[allow(clippy::too_many_arguments)] pub(crate) fn create_cons_quadratic( &mut self, lin_vars: Vec>, @@ -811,7 +810,6 @@ impl ScipPtr { Ok(()) } - #[allow(clippy::too_many_arguments)] pub(crate) fn include_heur( &self, name: &str,