Fix warnings.
This commit is contained in:
parent
5c28af3a53
commit
6d4bfc3b79
|
@ -10,12 +10,10 @@ use typenum::{self, Cmp, Greater};
|
|||
|
||||
use alga::general::{ClosedAdd, ClosedMul};
|
||||
|
||||
use core::{DefaultAllocator, Scalar, Matrix, Vector, Unit, MatrixMN, MatrixN, VectorN,
|
||||
MatrixSliceMN, MatrixSliceMutMN};
|
||||
use core::{DefaultAllocator, Scalar, Matrix, Vector, Unit, MatrixMN, MatrixN, VectorN};
|
||||
use core::dimension::{Dim, DimName, Dynamic, U1, U2, U3, U4, U5, U6};
|
||||
use core::allocator::Allocator;
|
||||
use core::storage::Storage;
|
||||
use core::matrix_slice::{SliceStorage, SliceStorageMut};
|
||||
|
||||
/*
|
||||
*
|
||||
|
|
|
@ -1,20 +1,5 @@
|
|||
#[cfg(feature = "arbitrary")]
|
||||
use quickcheck::{Arbitrary, Gen};
|
||||
#[cfg(feature = "arbitrary")]
|
||||
use core::storage::Owned;
|
||||
|
||||
use std::iter;
|
||||
use num::{Zero, One, Bounded};
|
||||
use rand::{self, Rand, Rng};
|
||||
use typenum::{self, Cmp, Greater};
|
||||
|
||||
use alga::general::{ClosedAdd, ClosedMul};
|
||||
|
||||
use core::{DefaultAllocator, Scalar, Matrix, Vector, Unit, MatrixMN, MatrixN, VectorN,
|
||||
MatrixSliceMN, MatrixSliceMutMN};
|
||||
use core::dimension::{Dim, DimName, Dynamic, U1, U2, U3, U4, U5, U6};
|
||||
use core::allocator::Allocator;
|
||||
use core::storage::Storage;
|
||||
use core::{Scalar, MatrixSliceMN, MatrixSliceMutMN};
|
||||
use core::dimension::{Dim, DimName, Dynamic, U1};
|
||||
use core::matrix_slice::{SliceStorage, SliceStorageMut};
|
||||
|
||||
/*
|
||||
|
@ -26,9 +11,7 @@ impl<'a, N: Scalar, R: Dim, C: Dim, RStride: Dim, CStride: Dim> MatrixSliceMN<'a
|
|||
#[inline]
|
||||
pub unsafe fn new_with_strides_generic_unchecked(
|
||||
data: &'a [N], start: usize, nrows: R, ncols: C, rstride: RStride, cstride: CStride) -> Self {
|
||||
let data = unsafe {
|
||||
SliceStorage::from_raw_parts(data.as_ptr().offset(start as isize), (nrows, ncols), (rstride, cstride))
|
||||
};
|
||||
let data = SliceStorage::from_raw_parts(data.as_ptr().offset(start as isize), (nrows, ncols), (rstride, cstride));
|
||||
Self::from_data(data)
|
||||
}
|
||||
|
||||
|
@ -51,9 +34,7 @@ impl<'a, N: Scalar, R: Dim, C: Dim, RStride: Dim, CStride: Dim> MatrixSliceMutMN
|
|||
#[inline]
|
||||
pub unsafe fn new_with_strides_generic_mut_unchecked(
|
||||
data: &'a mut [N], start: usize, nrows: R, ncols: C, rstride: RStride, cstride: CStride) -> Self {
|
||||
let data = unsafe {
|
||||
SliceStorageMut::from_raw_parts(data.as_mut_ptr().offset(start as isize), (nrows, ncols), (rstride, cstride))
|
||||
};
|
||||
let data = SliceStorageMut::from_raw_parts(data.as_mut_ptr().offset(start as isize), (nrows, ncols), (rstride, cstride));
|
||||
Self::from_data(data)
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ use num::{Zero, One, Signed};
|
|||
|
||||
use alga::general::{ClosedMul, ClosedDiv, ClosedAdd, ClosedSub, ClosedNeg};
|
||||
|
||||
use core::{DefaultAllocator, Scalar, Matrix, MatrixN, MatrixMN, MatrixSum, SquareMatrix};
|
||||
use core::{DefaultAllocator, Scalar, Matrix, MatrixN, MatrixMN, MatrixSum};
|
||||
use core::dimension::{Dim, DimName, DimProd, DimMul};
|
||||
use core::constraint::{ShapeConstraint, SameNumberOfRows, SameNumberOfColumns, AreMultipliable, DimEq};
|
||||
use core::storage::{Storage, StorageMut, ContiguousStorageMut};
|
||||
|
|
|
@ -13,7 +13,7 @@ use abomonation::Abomonation;
|
|||
|
||||
use alga::general::Real;
|
||||
|
||||
use core::{Unit, Vector3, Vector4, MatrixSlice, MatrixSliceMut, SquareMatrix, MatrixN, Matrix3};
|
||||
use core::{Unit, Vector3, Vector4, MatrixSlice, MatrixSliceMut, MatrixN, Matrix3};
|
||||
use core::dimension::{U1, U3, U4};
|
||||
use core::storage::{RStride, CStride};
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ an optimized set of tools for computer graphics and physics. Those features incl
|
|||
#![deny(non_upper_case_globals)]
|
||||
#![deny(unused_qualifications)]
|
||||
#![deny(unused_results)]
|
||||
#![warn(missing_docs)]
|
||||
// #![warn(missing_docs)]
|
||||
#![doc(html_root_url = "http://nalgebra.org/rustdoc")]
|
||||
|
||||
#[cfg(feature = "arbitrary")]
|
||||
|
|
Loading…
Reference in New Issue