Fix compilation of test when arbitrary is enabled but not `debug`.

This commit is contained in:
sebcrozet 2018-09-13 06:06:04 +02:00 committed by Sébastien Crozet
parent b272f3ba76
commit 1706f9c15f
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ set -ev
if [ -z "$NO_STD" ]; then if [ -z "$NO_STD" ]; then
if [ -z "$LAPACK" ]; then if [ -z "$LAPACK" ]; then
cargo test --verbose; cargo test --verbose;
cargo test --verbose "arbitrary";
cargo test --verbose "debug arbitrary mint serde-serialize abomonation-serialize"; cargo test --verbose "debug arbitrary mint serde-serialize abomonation-serialize";
else else
cd nalgebra-lapack; cargo test --verbose; cd nalgebra-lapack; cargo test --verbose;

View File

@ -1,4 +1,4 @@
#![cfg(feature = "arbitrary")] #![cfg(all(feature = "arbitrary", feature = "debug"))]
use std::cmp; use std::cmp;
use na::{DMatrix, Matrix4x3, DVector, Vector4}; use na::{DMatrix, Matrix4x3, DVector, Vector4};