diff --git a/src/lib.rs b/src/lib.rs index c5d22a86..584ca7f6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,11 +94,11 @@ Feel free to add your project to this list if you happen to use **nalgebra**! */ #![deny(non_camel_case_types)] -#![deny(unnecessary_parens)] -#![deny(non_uppercase_statics)] -#![deny(unnecessary_qualification)] -#![deny(unused_result)] -#![warn(missing_doc)] +#![deny(unused_parens)] +#![deny(non_upper_case_globals)] +#![deny(unused_qualifications)] +#![deny(unused_results)] +#![warn(missing_docs)] #![feature(macro_rules)] #![feature(globs)] #![doc(html_root_url = "http://nalgebra.org/doc")] diff --git a/src/structs/dmat.rs b/src/structs/dmat.rs index 45f86efd..da6600fe 100644 --- a/src/structs/dmat.rs +++ b/src/structs/dmat.rs @@ -1,6 +1,6 @@ //! Matrix with dimensions unknown at compile-time. -#![allow(missing_doc)] // we hide doc to not have to document the $trhs double dispatch trait. +#![allow(missing_docs)] // we hide doc to not have to document the $trhs double dispatch trait. use std::cmp; use std::rand::Rand; @@ -219,7 +219,7 @@ impl Indexable<(uint, uint), N> for DMat { assert!(col < self.ncols); let offset = self.offset(row, col); - *self.mij.get_mut(offset) = val + self.mij[offset] = val } /// Just like `set` without bounds checking. @@ -335,7 +335,7 @@ DMatMulRhs> for DVec { } } - *res.at.get_mut(i) = acc; + res.at[i] = acc; } res @@ -359,7 +359,7 @@ DVecMulRhs> for DMat { } } - *res.at.get_mut(i) = acc; + res.at[i] = acc; } res diff --git a/src/structs/dvec.rs b/src/structs/dvec.rs index b8d9b2b1..6936d185 100644 --- a/src/structs/dvec.rs +++ b/src/structs/dvec.rs @@ -1,6 +1,6 @@ //! Vector with dimensions unknown at compile-time. -#![allow(missing_doc)] // we hide doc to not have to document the $trhs double dispatch trait. +#![allow(missing_docs)] // we hide doc to not have to document the $trhs double dispatch trait. use std::num::{Zero, One, Float}; use std::rand::Rand; diff --git a/src/structs/iso.rs b/src/structs/iso.rs index 88b6d5af..c3ae5cfc 100644 --- a/src/structs/iso.rs +++ b/src/structs/iso.rs @@ -1,6 +1,6 @@ //! Isometric transformations. -#![allow(missing_doc)] +#![allow(missing_docs)] use std::num::{Zero, One}; use std::rand::{Rand, Rng}; diff --git a/src/structs/mat.rs b/src/structs/mat.rs index bc9d609e..a4feb657 100644 --- a/src/structs/mat.rs +++ b/src/structs/mat.rs @@ -1,6 +1,6 @@ //! Matrices with dimensions known at compile-time. -#![allow(missing_doc)] // we allow missing to avoid having to document the mij components. +#![allow(missing_docs)] // we allow missing to avoid having to document the mij components. use std::mem; use std::num::{One, Zero}; diff --git a/src/structs/pnt.rs b/src/structs/pnt.rs index b546f15f..f15cf57b 100644 --- a/src/structs/pnt.rs +++ b/src/structs/pnt.rs @@ -1,6 +1,6 @@ //! Points with dimensions known at compile-time. -#![allow(missing_doc)] // we allow missing to avoid having to document the point components. +#![allow(missing_docs)] // we allow missing to avoid having to document the point components. use std::mem; use std::num::{Zero, One, Bounded}; diff --git a/src/structs/quat.rs b/src/structs/quat.rs index 02a6660e..2a8a654c 100644 --- a/src/structs/quat.rs +++ b/src/structs/quat.rs @@ -1,6 +1,6 @@ //! Quaternion definition. -#![allow(missing_doc)] // we allow missing to avoid having to document the dispatch trait. +#![allow(missing_docs)] // we allow missing to avoid having to document the dispatch trait. use std::mem; use std::num::{Zero, One, Bounded}; diff --git a/src/structs/rot.rs b/src/structs/rot.rs index d8ae2763..b31d7522 100644 --- a/src/structs/rot.rs +++ b/src/structs/rot.rs @@ -1,6 +1,6 @@ //! Rotations matrices. -#![allow(missing_doc)] +#![allow(missing_docs)] use std::num::{Zero, One}; use std::rand::{Rand, Rng}; diff --git a/src/structs/spec/primitives.rs b/src/structs/spec/primitives.rs index 76a5995c..8998b8c7 100644 --- a/src/structs/spec/primitives.rs +++ b/src/structs/spec/primitives.rs @@ -1,6 +1,6 @@ //! nalgebra trait implementation for primitive types. -#![allow(missing_doc)] +#![allow(missing_docs)] #![allow(non_camel_case_types)] use traits::structure::Cast; diff --git a/src/structs/vec.rs b/src/structs/vec.rs index ec743466..736da7f2 100644 --- a/src/structs/vec.rs +++ b/src/structs/vec.rs @@ -1,6 +1,6 @@ //! Vectors with dimensions known at compile-time. -#![allow(missing_doc)] // we allow missing to avoid having to document the dispatch traits. +#![allow(missing_docs)] // we allow missing to avoid having to document the dispatch traits. use std::mem; use std::num::{Zero, One, Float, Bounded};