File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -184,10 +184,10 @@ pub fn next_u64_via_fill<R: RngCore + ?Sized>(rng: &mut R) -> u64 {
184
184
/// [`RngCore`]: ../RngCore.t.html
185
185
/// [`SeedableRng`]: ../SeedableRng.t.html
186
186
#[ derive( Clone ) ]
187
- pub struct BlockRng < R : BlockRngCore > {
188
- pub core : R ,
187
+ pub struct BlockRng < R : BlockRngCore + ?Sized > {
189
188
pub results : R :: Results ,
190
189
pub index : usize ,
190
+ pub core : R ,
191
191
}
192
192
193
193
// Custom Debug implementation that does not expose the contents of `results`.
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ pub trait RngCore {
200
200
/// // Final RNG.
201
201
/// type MyRng = BlockRng<u32, MyRngCore>;
202
202
/// ```
203
- pub trait BlockRngCore : Sized {
203
+ pub trait BlockRngCore {
204
204
/// Results element type, e.g. `u32`.
205
205
type Item ;
206
206
You can’t perform that action at this time.
0 commit comments