From 1b1d950f740ccfcf20671856ebdea102b9f729e5 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 19 Aug 2023 01:00:01 +0700 Subject: [PATCH] nalgebra-glm, clippy: Suppress too_many_arguments. Matrix constructors need more args. --- nalgebra-glm/src/constructors.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nalgebra-glm/src/constructors.rs b/nalgebra-glm/src/constructors.rs index 8afdaa20..5a43f2b5 100644 --- a/nalgebra-glm/src/constructors.rs +++ b/nalgebra-glm/src/constructors.rs @@ -91,6 +91,7 @@ pub fn mat2x4(m11: T, m12: T, m13: T, m14: T, /// ); /// ``` #[rustfmt::skip] +#[allow(clippy::too_many_arguments)] pub fn mat3(m11: T, m12: T, m13: T, m21: T, m22: T, m23: T, m31: T, m32: T, m33: T) -> TMat3 { @@ -115,6 +116,7 @@ pub fn mat3x2(m11: T, m12: T, /// Create a new 3x3 matrix. #[rustfmt::skip] +#[allow(clippy::too_many_arguments)] pub fn mat3x3(m11: T, m12: T, m13: T, m21: T, m22: T, m23: T, m31: T, m32: T, m33: T) -> TMat3 { @@ -127,6 +129,7 @@ pub fn mat3x3(m11: T, m12: T, m13: T, /// Create a new 3x4 matrix. #[rustfmt::skip] +#[allow(clippy::too_many_arguments)] pub fn mat3x4(m11: T, m12: T, m13: T, m14: T, m21: T, m22: T, m23: T, m24: T, m31: T, m32: T, m33: T, m34: T) -> TMat3x4 { @@ -153,6 +156,7 @@ pub fn mat4x2(m11: T, m12: T, /// Create a new 4x3 matrix. #[rustfmt::skip] +#[allow(clippy::too_many_arguments)] pub fn mat4x3(m11: T, m12: T, m13: T, m21: T, m22: T, m23: T, m31: T, m32: T, m33: T, @@ -167,6 +171,7 @@ pub fn mat4x3(m11: T, m12: T, m13: T, /// Create a new 4x4 matrix. #[rustfmt::skip] +#[allow(clippy::too_many_arguments)] pub fn mat4x4(m11: T, m12: T, m13: T, m14: T, m21: T, m22: T, m23: T, m24: T, m31: T, m32: T, m33: T, m34: T, @@ -181,6 +186,7 @@ pub fn mat4x4(m11: T, m12: T, m13: T, m14: T, /// Create a new 4x4 matrix. #[rustfmt::skip] +#[allow(clippy::too_many_arguments)] pub fn mat4(m11: T, m12: T, m13: T, m14: T, m21: T, m22: T, m23: T, m24: T, m31: T, m32: T, m33: T, m34: T,