Fix compilation with no-std.

This commit is contained in:
sebcrozet 2019-03-31 12:06:26 +02:00
parent eddaf669ac
commit 55873cae37
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,9 @@ alga = { git = "https://github.com/rustsim/alga", branch = "dev" }
[dev-dependencies] [dev-dependencies]
serde_json = "1.0" serde_json = "1.0"
rand_xorshift = "0.1" rand_xorshift = "0.1"
criterion = "0.2" # Newer vesrion of criterion make the compilation with no-std fail.
# This problem is partly due to https://github.com/rust-lang/cargo/issues/1796
criterion = "=0.2.7"
[workspace] [workspace]
members = [ "nalgebra-lapack", "nalgebra-glm" ] members = [ "nalgebra-lapack", "nalgebra-glm" ]

View File

@ -87,7 +87,6 @@ impl<N: ComplexField, D: Dim, S: Storage<N, D>> Reflection<N, D, S> {
S2: StorageMut<N, R2, C2>, S2: StorageMut<N, R2, C2>,
S3: StorageMut<N, R2>, S3: StorageMut<N, R2>,
ShapeConstraint: DimEq<C2, D> + AreMultipliable<R2, C2, D, U1>, ShapeConstraint: DimEq<C2, D> + AreMultipliable<R2, C2, D, U1>,
DefaultAllocator: Allocator<N, D>
{ {
lhs.mul_to(&self.axis, work); lhs.mul_to(&self.axis, work);
@ -109,7 +108,6 @@ impl<N: ComplexField, D: Dim, S: Storage<N, D>> Reflection<N, D, S> {
S2: StorageMut<N, R2, C2>, S2: StorageMut<N, R2, C2>,
S3: StorageMut<N, R2>, S3: StorageMut<N, R2>,
ShapeConstraint: DimEq<C2, D> + AreMultipliable<R2, C2, D, U1>, ShapeConstraint: DimEq<C2, D> + AreMultipliable<R2, C2, D, U1>,
DefaultAllocator: Allocator<N, D>
{ {
lhs.mul_to(&self.axis, work); lhs.mul_to(&self.axis, work);