Skip to content

Commit 3ab6eac

Browse files
committed
[fix-ci-nightly] include Float / FloatCore for non-std builds for float_sampler
1 parent 6a958db commit 3ab6eac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

proptest/src/num/float_samplers.rs

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ macro_rules! float_sampler {
2121
use rand::distributions::uniform::{
2222
SampleBorrow, SampleUniform, Uniform, UniformSampler,
2323
};
24+
#[cfg(not(feature = "std"))]
25+
use num_traits::float::FloatCore;
26+
#[cfg(not(feature = "std"))]
27+
use num_traits::float::Float;
2428

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

0 commit comments

Comments
 (0)