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; }