Fix warnings.

This commit is contained in:
sebcrozet 2018-05-26 21:02:24 +02:00 committed by Sébastien Crozet
parent fd55496985
commit cdfa73eba6
6 changed files with 14 additions and 5 deletions

View File

@ -1,4 +1,6 @@
use base::dimension::{Dynamic, U1, U2, U3, U4, U5, U6}; #[cfg(any(feature = "alloc", feature = "std"))]
use base::dimension::Dynamic;
use base::dimension::{U1, U2, U3, U4, U5, U6};
#[cfg(any(feature = "std", feature = "alloc"))] #[cfg(any(feature = "std", feature = "alloc"))]
use base::matrix_vec::MatrixVec; use base::matrix_vec::MatrixVec;
use base::storage::Owned; use base::storage::Owned;

View File

@ -2,6 +2,7 @@ use alga::general::{ClosedAdd, ClosedMul};
#[cfg(feature = "std")] #[cfg(feature = "std")]
use matrixmultiply; use matrixmultiply;
use num::{One, Signed, Zero}; use num::{One, Signed, Zero};
#[cfg(feature = "std")]
use std::mem; use std::mem;
use base::allocator::Allocator; use base::allocator::Allocator;

View File

@ -4,8 +4,10 @@ use base::storage::Owned;
use quickcheck::{Arbitrary, Gen}; use quickcheck::{Arbitrary, Gen};
use num::{Bounded, One, Zero}; use num::{Bounded, One, Zero};
#[cfg(feature = "std")]
use rand;
use rand::distributions::{Distribution, Standard}; use rand::distributions::{Distribution, Standard};
use rand::{self, Rng}; use rand::Rng;
use std::iter; use std::iter;
use typenum::{self, Cmp, Greater}; use typenum::{self, Cmp, Greater};

View File

@ -15,7 +15,9 @@ use generic_array::ArrayLength;
use typenum::Prod; use typenum::Prod;
use base::allocator::{Allocator, Reallocator}; use base::allocator::{Allocator, Reallocator};
use base::dimension::{Dim, DimName, Dynamic}; #[cfg(any(feature = "alloc", feature = "std"))]
use base::dimension::Dynamic;
use base::dimension::{Dim, DimName};
use base::matrix_array::MatrixArray; use base::matrix_array::MatrixArray;
#[cfg(any(feature = "std", feature = "alloc"))] #[cfg(any(feature = "std", feature = "alloc"))]
use base::matrix_vec::MatrixVec; use base::matrix_vec::MatrixVec;

View File

@ -928,7 +928,7 @@ where
} }
#[cfg(not(feature = "std"))] #[cfg(not(feature = "std"))]
fn val_width<N: Scalar + fmt::Display>(val: N, f: &mut fmt::Formatter) -> usize { fn val_width<N: Scalar + fmt::Display>(_: N, _: &mut fmt::Formatter) -> usize {
4 4
} }

View File

@ -6,7 +6,9 @@ use num::One;
use allocator::Allocator; use allocator::Allocator;
use base::{DefaultAllocator, Matrix, Scalar, VectorN}; use base::{DefaultAllocator, Matrix, Scalar, VectorN};
use dimension::{Dim, DimName, Dynamic, U1}; #[cfg(any(feature = "std", feature = "alloc"))]
use dimension::Dynamic;
use dimension::{Dim, DimName, U1};
use storage::StorageMut; use storage::StorageMut;
/// A sequence of row or column permutations. /// A sequence of row or column permutations.