Skip to content

Commit 2fe6f2f

Browse files
committed
Refactor: Move module sample_target to internals
1 parent 13140b4 commit 2fe6f2f

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

src/gens.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ mod mix;
1414
mod of_size;
1515
mod other_shrink;
1616
mod pick;
17-
mod sample_target;
1817
pub mod sized;
1918
pub mod vec;
2019
mod zip;
@@ -32,8 +31,6 @@ pub use of_size::of_size;
3231
pub use other_shrink::other_shrinker;
3332
pub use pick::pick_evenly;
3433
pub use pick::pick_with_ratio;
35-
pub use sample_target::Ratio;
36-
use sample_target::SampleTarget;
3734
pub use zip::zip;
3835

3936
/// Standard way to generate seeds for random source.

src/gens/mix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use crate::gens::Ratio;
2-
use crate::gens::SampleTarget;
1+
use crate::internal::sample_target::Ratio;
2+
use crate::internal::sample_target::SampleTarget;
33
use crate::BoxGen;
44
use crate::BoxShrink;
55
use rand::Rng;

src/gens/pick.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use crate::gens::Ratio;
2-
use crate::gens::SampleTarget;
1+
use crate::internal::sample_target::Ratio;
2+
use crate::internal::sample_target::SampleTarget;
33
use crate::BoxGen;
44
use rand::Rng;
55
use rand::SeedableRng;

src/internal.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
pub mod int_bounds;
1+
pub mod int_bounds;
2+
pub mod sample_target;

0 commit comments

Comments
 (0)