From 55873cae37f1863b0b7573bc6808e1fc13c67462 Mon Sep 17 00:00:00 2001 From: sebcrozet Date: Sun, 31 Mar 2019 12:06:26 +0200 Subject: [PATCH] Fix compilation with no-std. --- Cargo.toml | 4 +++- src/geometry/reflection.rs | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 424c4483..c8a974e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,7 +54,9 @@ alga = { git = "https://github.com/rustsim/alga", branch = "dev" } [dev-dependencies] serde_json = "1.0" 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] members = [ "nalgebra-lapack", "nalgebra-glm" ] diff --git a/src/geometry/reflection.rs b/src/geometry/reflection.rs index b36924d2..b4658a11 100644 --- a/src/geometry/reflection.rs +++ b/src/geometry/reflection.rs @@ -87,7 +87,6 @@ impl> Reflection { S2: StorageMut, S3: StorageMut, ShapeConstraint: DimEq + AreMultipliable, - DefaultAllocator: Allocator { lhs.mul_to(&self.axis, work); @@ -109,7 +108,6 @@ impl> Reflection { S2: StorageMut, S3: StorageMut, ShapeConstraint: DimEq + AreMultipliable, - DefaultAllocator: Allocator { lhs.mul_to(&self.axis, work);