diff --git a/src/distribution/bernoulli.rs b/src/distribution/bernoulli.rs index 0af2f101..d0b6e219 100644 --- a/src/distribution/bernoulli.rs +++ b/src/distribution/bernoulli.rs @@ -257,7 +257,7 @@ impl Discrete for Bernoulli { } #[rustfmt::skip] -#[cfg(all(test, feature = "nightly"))] +#[cfg(test)] mod testing { use std::fmt::Debug; use crate::distribution::DiscreteCDF; diff --git a/src/distribution/dirac.rs b/src/distribution/dirac.rs index 9a66e5e0..c781fa72 100644 --- a/src/distribution/dirac.rs +++ b/src/distribution/dirac.rs @@ -185,7 +185,7 @@ impl Mode> for Dirac { } #[rustfmt::skip] -#[cfg(all(test, feature = "nightly"))] +#[cfg(test)] mod tests { use crate::statistics::*; use crate::distribution::{ContinuousCDF, Continuous, Dirac}; diff --git a/src/distribution/dirichlet.rs b/src/distribution/dirichlet.rs index 0f703056..f47a0cfd 100644 --- a/src/distribution/dirichlet.rs +++ b/src/distribution/dirichlet.rs @@ -301,7 +301,7 @@ fn is_valid_alpha(a: &[f64]) -> bool { } #[rustfmt::skip] -#[cfg(all(test, feature = "nightly"))] +#[cfg(test)] mod tests { use super::*; use nalgebra::{DVector}; diff --git a/src/distribution/discrete_uniform.rs b/src/distribution/discrete_uniform.rs index 59b0da4e..a128d9d3 100644 --- a/src/distribution/discrete_uniform.rs +++ b/src/distribution/discrete_uniform.rs @@ -248,7 +248,7 @@ impl Discrete for DiscreteUniform { } #[rustfmt::skip] -#[cfg(all(test, feature = "nightly"))] +#[cfg(test)] mod tests { use std::fmt::Debug; use crate::statistics::*; diff --git a/src/distribution/empirical.rs b/src/distribution/empirical.rs index 0e8c964a..b22b78be 100644 --- a/src/distribution/empirical.rs +++ b/src/distribution/empirical.rs @@ -206,7 +206,7 @@ impl ContinuousCDF for Empirical { } } -#[cfg(all(test, feature = "nightly"))] +#[cfg(test)] mod tests { use super::*; #[test] diff --git a/src/distribution/laplace.rs b/src/distribution/laplace.rs index f04306f1..bcaaae08 100644 --- a/src/distribution/laplace.rs +++ b/src/distribution/laplace.rs @@ -291,7 +291,7 @@ impl Continuous for Laplace { } } -#[cfg(all(test, feature = "nightly"))] +#[cfg(test)] mod tests { use super::*; use rand::thread_rng; diff --git a/src/distribution/multivariate_normal.rs b/src/distribution/multivariate_normal.rs index 368da0ec..e50ac3ac 100644 --- a/src/distribution/multivariate_normal.rs +++ b/src/distribution/multivariate_normal.rs @@ -242,7 +242,7 @@ impl Continuous, f64> for MultivariateNormal { } #[rustfmt::skip] -#[cfg(all(test, feature = "nightly"))] +#[cfg(test)] mod tests { use crate::distribution::{Continuous, MultivariateNormal}; use crate::statistics::*;