From 4c262bb91db2420a6bb0f5001ef5aeb8e2fdca48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Thu, 23 Jan 2014 01:22:23 +0100 Subject: [PATCH] Remove useless parenthesis. --- src/lib.rs | 1 + src/structs/dmat.rs | 2 +- src/structs/mat_macros.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 84872543..4cec25c4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -99,6 +99,7 @@ Feel free to add your project to this list if you happen to use **nalgebra**! #[crate_id = "nalgebra#0.1"]; #[crate_type = "lib"]; #[deny(non_camel_case_types)]; +#[deny(unnecessary_parens)]; #[deny(non_uppercase_statics)]; #[deny(unnecessary_qualification)]; #[warn(missing_doc)]; diff --git a/src/structs/dmat.rs b/src/structs/dmat.rs index e884f47c..db452831 100644 --- a/src/structs/dmat.rs +++ b/src/structs/dmat.rs @@ -348,7 +348,7 @@ Inv for DMat { let mut n0 = k; // index of a non-zero entry - while (n0 != dim) { + while n0 != dim { if unsafe { self.at_fast(n0, k) } != _0T { break; } diff --git a/src/structs/mat_macros.rs b/src/structs/mat_macros.rs index 3eb85c34..712afe57 100644 --- a/src/structs/mat_macros.rs +++ b/src/structs/mat_macros.rs @@ -364,7 +364,7 @@ macro_rules! inv_impl( let mut n0 = k; // index of a non-zero entry - while (n0 != $dim) { + while n0 != $dim { if self.at((n0, k)) != _0N { break; }