Skip to content

Commit

Permalink
[fix-ci-nightly] include Float / FloatCore for non-std builds for flo…
Browse files Browse the repository at this point in the history
…at_sampler
  • Loading branch information
rex-remind101 committed Dec 19, 2022
1 parent 6a958db commit 3ab6eac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proptest/src/num/float_samplers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ macro_rules! float_sampler {
use rand::distributions::uniform::{
SampleBorrow, SampleUniform, Uniform, UniformSampler,
};
#[cfg(not(feature = "std"))]
use num_traits::float::FloatCore;
#[cfg(not(feature = "std"))]
use num_traits::float::Float;

#[must_use]
// Returns the previous float value. In other words the greatest value representable
Expand Down

0 comments on commit 3ab6eac

Please sign in to comment.